You are not logged in.

#1 2021-09-23 17:13:53

zerophase
Member
Registered: 2015-09-03
Posts: 228

Proper rsync command for rolling back a system?

I backed up my system with borgbackup. I just extracted a backup to disk, and now want to move it over, and replace / delete all files not in the backup.

Going to use:

 
rsync -aAHX ——delete src/ root/

Should I add anymore flags?

Offline

#2 2021-09-23 19:15:17

arch_jsb
Member
Registered: 2010-03-13
Posts: 28

Re: Proper rsync command for rolling back a system?

I'd need a diagram of your filesystems, and a description of each and how you'd want each one to be changed by using the command, to even begin to answer without possible risk of data loss.

Last edited by arch_jsb (2021-09-23 19:17:41)

Offline

#3 2021-09-25 04:52:04

zerophase
Member
Registered: 2015-09-03
Posts: 228

Re: Proper rsync command for rolling back a system?

It did what I wanted. Just lost cache files and such, and had to manually add a handful of empty files.

I just wanted to rollback to an earlier point in time.

Last edited by zerophase (2021-09-25 04:52:52)

Offline

#4 2021-09-25 15:22:35

zpg443
Member
Registered: 2016-12-03
Posts: 271

Re: Proper rsync command for rolling back a system?

If you want a "rollback" approach, have you considered timeshift?

Offline

Board footer

Powered by FluxBB