backup command: 'dump' and 'pax' => correct syntax usage
I'm trying to use the 2 commands "dump" and "pax" for a full system backup of an ubuntu VPS.
I have read: - the man pages - tutorials on the net It's shameful, because the syntaxt construction is given in the man-pages. But still I just can't the syntaxt right. Any help on this is very welcome. (it's a VPS i only gave commandline access) The reason I want to avoid TAR (if possible): http://www.matusiak.eu/numerodix/blo...system-backup/ => see reaction user: Augur DUMP The path to the backup file: /restr/databackup1 backup: Code:
dump -0uf databackup1 Code:
restore -rf /restr/databackup1 Backup (not working, command below also includes directory exclusions): Code:
pax -w -f /restr/databackup1 -s '//proc/' -s '//lost+found/' -s '//sys/' -s '//dev/' -s '//mnt/' -s '//media/' |
Code:
pax -w -f /restr/databackup1 -s '//proc/' -s '//lost+found/' -s '//sys/' -s '//dev/' -s '//mnt/' -s '//media/' Quote:
You need at least a "." (current directory) or "/" (filesystem root) there. But please read also the warning on the pax man page. Are you really running a SELinux or similar ? I think, you will be okay with a tar or cpio backup. |
@cheesus
Thanks for those 2 important pointers! (I didn't have selinux installed on my server). But because PAX seems to be a bit confusing to me, I'll stick to TAR. TAR seems to work only the "--recursive-unlink" switch seems to be giving troubles. Thanks again cheesus! |
Well, if you want to backup e.g. the "/dev", you'll probably have to use cpio or pax.
If you're just backupping data, tar is fine. Please rate answer and mark thread as solved. Cheers! |
All times are GMT -5. The time now is 09:25 AM. |