Jump to content






Photo - - - - -

Unix Backup and Restore

Posted by wildweaselmi , 20 June 2011 · 22 views

So I am searching high and low for methods of backing up and restoring a centos system.

So far I have limited it down to using rdump which is a way to copy files and directories from server to backup server.  Of course first I must backup mySQL databases and then perform rdump.

Next step is to identify the commands to use and then figure out how to put it all into a script and run a cron job.

Exciting stuff.  I'll keep you posted.

By the way, I really found a great deal for an O'Reilly book called Unix Backup and Recovery which is normally $53 new, I found on Amazon for $14 (new)...  oh yea!





wildweaselmi
Jul 07 2011 06:25 AM
an example command would be something like: rdump 0unf elvis:/dev/rmt/0cbn /home

option meanings:
0-9   Specifies the level of backup that dump or rdump should perform
u   Tells dump to update the dumpdate file.
n   Tells dump to notify the members of the operator group when a dump is completed.
f   Tells dump what device to use.
W,w Tell dump to perform a dry run that tells you what filesystems need to be backed up

wildweaselmi
Jul 07 2011 06:47 AM
Here is an example on a Solaris box
# dump 0ucf starbug:/dev/rmt/0 /
# restore tf starbug:/dev/rmt/0

wildweaselmi
Jul 07 2011 06:54 AM
Backup using SSH (preferred method because its so secure)
# /sbin/dump -0uan -f - /usr | gzip -2 | ssh -c blowfish \		   targetuser@targetmachine.example.com dd of=/mybigfiles/dump-usr-l0.gz

wildweaselmi
Jul 07 2011 08:27 AM
Also checking out Bacula Backup System which I noticed on my installation of webmin
yum install -y bacula-common.x86_64 bacula-console.x86_64 bacula-console-gnome.x86_64 bacula-console-wxwidgets.x86_64 bacula-director-common.x86_64 bacula-director-mysql.x86_64 bacula-storage-common.x86_64 bacula-storage-mysql.x86_64 bacula-traymonitor.x86_64