Note: It is recommended that the backup drive has a Linux compatible file system as ext4. When you’re sure that everything is performed as you want, you remove -dry-run from the command and run it again. We press enter, the command will execute in a simulation mode (because of the -dry-run option) This way we test it to make sure everything is okay. I recommend to enrypt the destination, to make your data safe. run/media/alu/ALU - This is where you what to backup. ![]() mnt/ it is vital to exclude them if we connect a USB memory. The excluded folders depend directly on each of us, however, the /dev/, /proc/, /proc/ /sys/ /tmp/ /run/ /mnt/ and /media folders are not important to backup because rsyn will not copy their content. But make sure you change your working directory to root ( cd /) before you run rsync, otherwise the joint exclude option may not work. I typed exclude as a separate option for every directory. exclude - Excludes folders and files from backup. dry-run - This option simulates the backup. So, it will backup only new files and modified files and it will also delete all the files in the backup which were deleted on your system. That means, if it is not your first backup, it will backup only the difference between your source and the destination. delete - this option allows you to make an incremental backup. v - It will show the progress of the backup. Owner attributes or permissions will not be modified during the backup process. Mandatory use.īasically, these three options mean to preserve all the attributes of your files. Sudo - to execute the command as a superuser. We now proceed to explain what this command means: ![]() I know that not everyone is confident with the command line tools, but you will realize that the process is not that complicated and you can also back up your system using the command line. ![]() To make a backup with rsync, we usually use the command line. Sudo rsync -aAXv -delete -dry-run -exclude=/dev/* -exclude=/proc/* -exclude=/sys/* -exclude=/tmp/* -exclude=/run/* -exclude=/mnt/* -exclude=/media/* -exclude="swapfile" -exclude="lost+found" -exclude=".cache" -exclude="Downloads" -exclude=".VirtualBoxVMs"-exclude=".ecryptfs" / /run/media/alu/ALU/
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |