The probably simplest way of doing backups is using rsync
to synchronize files and directories between different servers or local media.
rsync --verbose --progress --recursive --executability --owner --group --delete --human-readable --partial 'SOURCE_DIR/' 'TARGET_DIR'
SOURCE_DIR
is followed by a /
, to indicate, that we want to sync the files within the directory, not the directory itself.TARGET_DIR
is not followed by a /
.