We now turn to explain what this command means:

Your go-to forum for bot dataset expertise.
Post Reply
Mitu100@
Posts: 1308
Joined: Tue Jan 07, 2025 4:30 am

We now turn to explain what this command means:

Post by Mitu100@ »

n this case, we'll use this whole command:

To make a backup using rsync, we usually use the command line. I know that not everyone is sure about the command line tools, but you will find that the process is not that complicated and you can also back up your system using the command line.

sudo - execute the command as superuser. Mandatory use.
rsync is the program itself to be used.
-a - archive mode.
-A - save the access control list.
-X - keep extended attributes.
Basically, these three options c level executive list mean preserving all the attributes of your files. Owner attributes or rights will not be changed during the backup process.
-v - show the progress of the backup.
--delete - This option allows you to make an incremental backup. This means that if this is not your first backup, it will only keep the difference between your source and destination. Thus, it will only back up new files and changed files, and it also deletes all files in the backup that have been deleted from your system. Be careful with this option.
--dry-run - This option simulates a backup. Useful for checking if it is being executed.
--exclude - Excludes folders and files from the backup. I entered exclude as a separate parameter for each directory. You can also use it this way --exclude={/dev/*,/proc/*,/sys/*,/tmp/*,/run/*,/mnt/*,/media/*,/home/*,/lost+found}. But before running rsync, make sure you change the working directory to root (cd /), otherwise the shared exclusion option may not work.
Post Reply