A complete description of this is in Duplicacy User Guide. The filters file allows you to set up what files and directories to back up using wildcard matching. All files and directories to be backed up must be under this root.Ĭreate a file filters in the. duplicacy in the root of the location you wish to back up (this is called the repository). Here’s a quick run down of how to get Duplicacy up and running in a few minutes using the CLI: The CLI version is free for personal use, but if you do find it useful, I suggest paying for a personal license to support the developer. In comparison, Duplicacy has been fast and easy to use.Īlthough I originally tried the GUI version of Duplicacy, I found the CLI to be more to my liking. I previously used Duplicati 1 but found it be extremely slow preparing the list of files to back up. It’s marketed as a ‘cross-platform cloud backup tool’ and I’ve been happy with it so far. You can run this shell command before you run the duplicacy backup command or add it to a bash script.I’ve started using Duplicacy to do my backups. This means that nachoStorage needs to be written as NACHOSTORAGE. NOTE: You need to use capitalization for the remote storage name regardless of the actual name of the storage. If your storage password is ThisIsNotAVerySecurePassword, the command would like this in our example scenario: export DUPLICACY_NACHOSTORAGE_PASSWORD="ThisIsNotAVerySecurePassword" If you want to automate your backups by running them from a bash script via cron, you will need to also use this variable. If you do not want to enter the storage password every time you run the backup, you can use the DUPLICACY_PASSWORD environment variable. You will be prompted to enter the storage password.Įnter the storage password you created when you initialized the repostiory. Run the duplicacy backup command from the backup directory. Use a text editor such as vim or nano to edit the file because spacing is important. Use a plan text editor such as vim or nano. duplicacy/preferences file to change the "keys": line. Here is how I would copy it on my system: $ cp /home/curt/.ssh/id_rsa /home/curt/Photos/.duplicacy/Įdit the. duplicacy after the initialization is completed.Ĭopy your private ssh key to this directory. You will see the following prompts: Enter SSH password:Įnter storage password for sftp:// /remotePhotos:Įnter SSH password: Hit the enter key on your keybord to leave the password blank if you use ssh keys.Įnter the path of the private key file: Type in the full path to your private ssh key.įor me, I would enter /home/curt/.ssh/id_rsa for the path.Įnter storage password: Type in the storage password you wish to use.ĭuplicacy creates a configuration folder named. $ duplicacy init -e -storage-name nachoStorage photoBackup sftp:// /remotePhotos Initialize the remote storage and repository. This refers to the -storage-name option.įor me, I would use sftp:// /remotePhotos for the. You want to name the remote storage nachoStorage. You want to name the backup job photoBackup. You can connect to the nacho.local sftp server using ssh keys. This is the directory to be used for the backups. You have a directory named remotePhotos on the nacho.local sftp server. You have an sftp server named nacho.local that you want to use to backup your Photos directory. storage-name assign a name to the storage We will only use the following options: -encrypt, -e encrypt the storage with a password The refers to the remote server and directory path for your backups. The refers to the name you want to give to your backup job. The duplicacy init command is used to initialize the remote storage and the backup directory. Initialize the remote storage and repository # Move duplicacy to the /usr/bin directory. $ mv duplicacy_linux_圆4_2.7.2 duplicacyĬhange the file permissions. Pre-compiled binaries are availble for Linux, macOS, and Windows directly from the Duplicacy GitHub external linkĭownload the latest version for your system. That is the version we’ll be using for this tutorial. The software does require a license external linkīut the command-line interface (CLI) version is free for personal use. Duplicacy is available as a web-based GUI or as a commmand line tool. It also supports local disks and your own SFTP servers. Is state-of-the-art backup tool that has extensive cloud support.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |