![]() With the second command you should fill in the correct user password, however with the third command, SSH shouldn’t ask you for the user password, and just login automatically, because we just put the (passwordless) ssh keys into place. #GRSYNC UBUNTU PASSWORD#With the first command you need to leave the key password empty. In this tutorial I’ll be using public key cryptography with ssh to enable automatic logins.įirst you need to login into your backup server, and create a (remote) user useradd remoteuserĪfter that’s done, you’ll need ssh-copy-id -i. However, these is an easy solution for Linux, if you own a machine offsite with a decent Internet connection, preferably colocation. #GRSYNC UBUNTU WINDOWS#However, these very often involve using proprietary software, which most of the time is only available for the Windows platform. I appreciate your help in advance.These days large firms (for example like our Dutch telecom company called KPN) are offering a plethora of backups solution, usually nicely priced. I appologize in advance as I'm a linux novice. Rsync -aAXv –delete –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” / /mnt/backup Here's the command I ran per your instruction above (logged in as root): Rsync: chown “/mnt/backup/var/failed: Operation not permitted (1) On inspecting the source directory, the file name being backed up is not preceded with a “.” (I ran ls -a) nor is it appended with a. On each line of “failed: Operation not permitted (1)” messages, the file name is preceded with a “.” and appended with a. While I don't have sudo installed on my Debian 10 server, I do (and did) use su - prior to running the rsync job. Once logged in from the live image, we must create two folders, one for the system on the hard disk and the other where the backup created will be mounted: #GRSYNC UBUNTU ISO#Since we are working with Arch Linux, then the iso image must be from Arch Linux. To restore the backup we have made, we are going to boot from a live ISO. 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. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |