Contributed by jose on from the CYA dept.
Using the pax tool was one of the latest BSD pieces on the OnLamp site.
A brief rsync tutorial also gives some example scripts for backing up your system. As a reference, my brief "backup" command is just a small shell script:
#!/bin/ksh export RSYNC_RSH=/usr/bin/ssh rsync -avz ~/* --exclude music/ jose@192.168.0.11:~/rsync/tank/Keep your data safe!
(Comments are closed)
By dash () on
##################################
#!/bin/sh
today=$(date +%m%d)
OPT="--delete --stats"
cd /home/rsync_log/
echo "Backup start" | mail -s "Backupstart" dash at foru.sarang.net
rsync -avz 211.239.150.31::test /Backup/test $OPT 2>&1 > /home/rsync_log/test_$today_log
.
.
.
echo "Backup Done" | mail -s "Backupdone" dash@foru.sarang.net
####################################
of course, backup server opened rsync port.
Comments
By Brett Jones () on
Comments
By dash () on
my mistake....I worried about that..
By Pascal Lalonde () plalonde@overnet.qc.ca on mailto:plalonde@overnet.qc.ca
/usr/local/bin/gtar zcvf /var/cd_image/backup.tar.gz -T /etc/bkinclude -X /etc/bkexclude >> $BKLOG 2>&1
The contents of bkinclude are:
/etc/
/home/
/root/
/cvs/
/var/named/
/var/www/
/var/backups/
/var/log/
/usr/local/
and bkexclude:/etc/
/home/mp3share
/home/pub
The cd_image directory is later picked by cdrecord, on a CD-RW. (This is my "home server", my personnal data is in /home).
I don't know if this is a good way to do backups, but until now it worked very well. But I'd gladly accept suggestions.
Comments
By Anonymous Coward () on
the problem with not backing up everything is forgetting what to include, so specify only what to exclude, not what to include.
Comments
By Pascal Lalonde () plalonde@overnet.qc.ca on mailto:plalonde@overnet.qc.ca
I don't mind having to spend 2 days rebuilding it. I just want to be able to get all my personnal data back, and configuration data. My backup already takes 340 megs, gzipped. And it could grow very fast. My mail resides under /home, Maildir format. For crontabs, I guess I should add /var/cron/tabs. Maybe I could be more "general" in what I include, and exclude what I don't need. For example, include /var, but exclude /var/cd_image.
By Anonymous Coward () on
hrm, the only thing i really *cant* reproduce is the music i have on my servers....
By RC () on
Comments
By Anonymous Coward () on
greets Dennis
Comments
By vincent () vincent at igc dot ethz dot ch on mailto:vincent at igc dot ethz dot ch
By Anonymous Coward () on
Cheers, Matthias
Comments
By Anonymous Coward () on
Thanks in advance :-)
Comments
By Anonymous Coward () fuc952d at tninet.se on mailto:fuc952d at tninet.se
By danny () danny@partisan.de on mailto:danny@partisan.de
Comments
By danny () danny@partisan.de on mailto:danny@partisan.de
By Jim () on
Comments
By Shane () on
Comments
By deekayen () on http://openbsddiary.org/
Comments
By Shane () on
By Anonymous Coward () on http://www.cis.upenn.edu/~bcpierce/unison/
By Coward () on
By Coward () on
By Anonymous Coward () on http://www.cis.upenn.edu/~bcpierce/unison/
http://www.cis.upenn.edu/~bcpierce/unison/
Comments
By William () on
Comments
By Anonymous Coward () on http://www.cis.upenn.edu/~bcpierce/unison/
1 - download latest ocaml compiler : http://caml.inria.fr/
2 - install ocaml
3 - download unison source file
4 - compiling it
Comments
By William () on
Comments
By William () on
By Jedi/Sector One () j@pureftpd.org on http://www.pureftpd.org/
I switched to ssync, a lightweight tool to sync two (locally mounted) directories. It works extremely well and fast for backups.
By Kyle Amon () amonk@backwatcher.com on http://www.backwatcher.com/
at...
http://www.backwatcher.org/index.php?page=software
It is a perl program (with a couple config files) for making efficient, secure backups of large numbers of remote unix machines with rsync over ssh.
It could be made to backup winblows machines too, but since I have no need for that, I never bothered with it. It's GPLd, so add that if you like. :-)
BTW, there is very little documentation in that tarball at present, but then if you need more than that, you probably need to backup winblows machines easily anyway. :)
Later,
-- Kyle