You are not logged in.
Pages: 1
Or could be other application?
I need a solution to mount the backup hard drive with label=foo_bkp copy the contents of of disk with label=foo to foo_bkp and finally remove the files on foo_bkp that are no longer on foo.
According to dump's man page:
files-to-dump is either a mountpoint of a filesystem or a list of files and directories to be backed up as a subset of a filesystem. In the former case, either the path to a mounted filesystem or the device of an unmounted filesystem can be used. In the latter case, certain restrictions are placed on the backup: -u is not allowed, the only dump level that is supported is 0 and all the files and directories must reside on the same filesystem.
I must mount the back up fs in order to avoid overwritting of backups.
Offline
How are you running your backups?
rsync should be sufficient with the --delete flag to remove files no longer in the source.
You can just write a script to mount the disk, do the rsync backup then umount the disk when finished.
Offline
How are you running your backups?
rsync should be sufficient with the --delete flag to remove files no longer in the source.
You can just write a script to mount the disk, do the rsync backup then umount the disk when finished.
I always look for the most built in solution, but now that you say it, it can be. what about recursion and attributes?
should it be -ra?
Edit: @fajardo yeahhh! man rsync that's ok.
Last edited by Automath (2021-10-28 19:40:18)
Offline
Offline
Pages: 1