backups - linux

Rsync


sudo rsync -ahHxu --partial --ignore-errors --info=progress2 --delete \                                                         130
    --exclude='/tmp/' \
    --exclude='/proc/' \
    --exclude='/sys/' \
    --exclude='/dev/' \
    --exclude='/run/' \
    --exclude='/mnt/' \
    --exclude='/media/' \
    --exclude='/lost+found/' \
    / /media/steven/MainBackup

    -a: Archive mode (preserves file attributes and copies directories recursively).
    -v: Verbose output.
    -h: Human-readable file sizes.
    -H: Preserve hard links.
    -x: Stay within the same filesystem.
    -u: Skip files that are newer in the destination.
    -P: Show progress and keep partially transferred files.
    --ignore-errors: Continue even if some files have errors.
    --delete: Remove files in the destination that are no longer present in the source.