You are not logged in.

#1 2021-10-26 20:21:47

Automath
Member
Registered: 2016-05-16
Posts: 115

How to use dump for backups?

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

#2 2021-10-27 05:58:31

d_fajardo
Member
Registered: 2017-07-28
Posts: 1,687

Re: How to use dump for backups?

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

#3 2021-10-28 19:14:33

Automath
Member
Registered: 2016-05-16
Posts: 115

Re: How to use dump for backups?

d_fajardo wrote:

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

#4 2021-10-28 19:16:02

d_fajardo
Member
Registered: 2017-07-28
Posts: 1,687

Re: How to use dump for backups?

Offline

Board footer

Powered by FluxBB