💾 Archived View for gemini.susa.net › rsync_vps_backup.gmi captured on 2023-09-28 at 15:53:24. Gemini links have been rewritten to link to archived content

View Raw

More Information

⬅️ Previous capture (2021-11-30)

-=-=-=-=-=-=-

rsync entire root filesystem to a local device

This can be used to snapshot an entire server, useful for keeping a copy before migrating a VPS, for example.

Taken from superuser.com answer.

rsync -avxHAX --progress server.example.com:/ ./local_backup_dir

The options are:

-a : all files, with permissions, etc..

-v : verbose, mention files

-x : stay on one file system

-H : preserve hard links (not included with -a)

-A : preserve ACLs/permissions (not included with -a)

-X : preserve extended attributes (not included with -a)

Other options:

-W : this is --whole-file, prevents trying to do delta copies

--numeric-ids : keep the original UID/GID number, don't remap