You can use other protocls if you use different providers, such as sftp:// and so on. repositoryname is just a name you will give to the repository.init tells Duplicacy we want to set up a repository here.For example, Duplicacy will back up /mnt/user/Movies, /mnt/user/Music, and so on. Let’s say we’re currently in /mnt/user, so we’re backing up everything underneath it.So what does this mean? Let’s go over this: Navigate to your USB drive on your UnRAID server:ĭuplicacy init repositoryname b2://servername-duplicacy -e So we need to install Duplicacy on a persistent partition, and then copy it across. Now, UnRAID boots off of USB drives, which means that if you just blindly copy your Duplicacy executable to a system folder, the changes will be lost on next boot. Always make sure the backup is in an easily-accessible medium and make sure to test your backup so that you don’t have trouble restoring it later. If you have everything stored on Amazon Glacier and your house burns down, you’ll probably spend all your money on a new house, not for downloading your music stash from Glacier. If you can’t restore it, you don’t have it.If someone tells you they have a bulletproof backup solution with RAID only, you have the right to laugh in their face. That means, if a backup is running and you issue a prune command on another server, it may result in a loss of ALL of your data! Always make sure that only one instance of Duplicacy is operating at a given moment. Duplicacy expects sole access to the backup destination.They have a free CLI version and a paid GUI version, but you probably only need the CLI tool unless you’re extremely scared of the terminal. So what is Duplicacy?ĭuplicacy is a backup/restore tool for servers. In this post we’re going to look at Duplicacy, a tool that allows you to backup large amounts of data to any storage provider. On the computer that is doing the copy, run:Ĭd backup_storage_location_root (e.g.!Warning: This post is over 365 days old.To set up the above scenario, follow these steps: On Desktop1, you can add an additional cloud storage location for that backup and run copy to copy the back up to the cloud, ensuring that you have two copies of the backup in different locations, and with the copying running in the background on a computer with a more reliable network connection. Therefore, it is possible to have a repository on Laptop1 that is backed up to a (local) network storage location (e.g. In addition, the copy command can be run from a different computer than the one containing the initial repository. You can then use the copy command to copy the backup from one storage to another. Multiple storage locations using the copy commandĪ useful feature of Duplicacy is you can add multiple storage locations for each backup repository. Obviously, the above command can be run whenever you want to do a backup.Initialise the repository for backup by setting the default storage location for the backup by running:.This includes some directories under users/John Doe, excludes an unwanted_directory/, includes please_back_up_another_wanted_directory/ under the root, but excludes all other directories under the root by default, as well as unwanted Windows Thumbs.db, desktop.ini, ~*, shortcuts, and directories marked with _del*. For a Windows system, an example filters file is provided here. 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. I’ve started using Duplicacy to do my backups.
0 Comments
Leave a Reply. |