OS backup to a tape drive
Hello,
I am trying to take an OS backup of my server (SLES11) but it is giving some errors. This is the command I executed tar -czf /dev/st0 /var /lib /lib64 /bin /sbin /home /opt /proc /sys /etc and it is giving following error Code:
tar: /var/run/dbus/system_bus_socket: socket ignored tar: Removing leading `/' from hard link targets Please advice me on this. Thanks in advance. ccilleperuma. |
The error messages that you receive is because sockets are not real files, but connection between two programs. For postfix it seems to be OK to backup while live.
The oracle think looks more serious, what is that, a database? You might run into trouble when you need to restore that ever. For both processes I recommend to stop them first before backing up, then restart them. For postfix you might leave it like that, or skip the /var/spool/directories directories. For oracle it is better to stop it to prevent that you have an inconsistent database when restoring. jlinkels |
just test one by one
tar -czf /dev/st0 /var |
Would also suggest that you add v in your options, that way you'll see every file as it's being processed, this will give you a warm fuzzy feeling that things are still working.
|
As per the my knowledge, /var contains changing files when running the OS.
So can I avoid the /var when I take an OS backup? I really dont need any application specific files to be backed up. Thanks, ccilleperuma. |
In principle that assumption is correct. But if I can avoid it, I would not skip the var directory. The OS must be able to reconstruct the /var, but it doesn't mention the amount of effort needed.
Just skip /var/tmp and /var/spool/postfix and that problem is solved. However, Oracle might not be happy at all when backing up and restoring at database(?) which is in unknown state, so again, it is better to stop that Oracle process during backup, or make a database dump before backing up. Making a dump is MySQL or Postgresql speak, I don't know what your Oracle thingy is or supports. jlinkels |
All times are GMT -5. The time now is 03:11 AM. |