You are not logged in.

#1 2017-01-03 11:24:54

kokoko3k
Member
Registered: 2008-11-14
Posts: 2,399

[SOLVED] Arch wiki and rsync backup

Here: https://wiki.archlinux.org/index.php/Fu … with_rsync
the suggested method of backing up via rsync is the following:

# rsync -aAXv --exclude={"/dev/*","/proc/*","/sys/*","/tmp/*","/run/*","/mnt/*","/media/*","/lost+found"} / /path/to/backup/folder

But rsync man pages states:

 -x, --one-file-system       don't cross filesystem boundaries

Is there any reason why one should prefer "--exclude" over "-x" ?

Thanks.

Last edited by kokoko3k (2017-01-03 12:59:40)


Help me to improve ssh-rdp !
Retroarch User? Try my koko-aio shader !

Offline

#2 2017-01-03 11:34:01

Slithery
Administrator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 5,776

Re: [SOLVED] Arch wiki and rsync backup

If your Arch installation is all on one partition then no, it won't make any difference.

If, however, you have separate partitions for /boot, /home, /var, whatever then the --exclude method would back these up, whereas the -x method wouldn't.

Last edited by Slithery (2017-01-03 11:36:53)


No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Offline

#3 2017-01-03 12:59:18

kokoko3k
Member
Registered: 2008-11-14
Posts: 2,399

Re: [SOLVED] Arch wiki and rsync backup

Ok, thanks.


Help me to improve ssh-rdp !
Retroarch User? Try my koko-aio shader !

Offline

Board footer

Powered by FluxBB