![]() ![]() Unfortunately, most control panels can’t use this sort of cloud storage they expect to backup by SFTP rather than S3 or WebDAV. This is where Duplicacy comes in – it’s fast, efficient and secure, available for Linux, OSX and Windows and the command line version is free for personal use. The catch is it’s a bit tricky to set up and the documentation is sparse, so that’s what this post is about. This post is specifically about backing up websites from a Linux server – for backups from Windows see our earlier post. #INSTALL DUPLICACY CLI ONLY FREE WINDOWS# Initial set upįirst, we need to download the latest version of the command line executable appropriate to your operating system. For 64-bit Linux at the time of writing this is duplicacy_linux_圆4_2.7.2. The first sentence of the Quick Start quide says “Once you have the Duplicacy executable on your path…”, so we’ll start with that.Ĭonnect to your server console via SSH using a program such as PuTTY (from Windows) or Terminal (from OSX). If you are a “sudo” user you can use this command to become root temporarily: sudo -i You will need root privileges to do most of the steps below. You can use the following commands to download the Duplicacy program to /usr/local/bin and make it executable. For convenience, we’ll rename it to “duplicacy” as well. ![]() If you now type this simple command duplicacy Mv duplicacy_linux_圆4_2.7.2 /usr/local/bin/duplicacy #INSTALL DUPLICACY CLI ONLY FREE DOWNLOAD# You should see a version number and a list of options. The next step in the Quick Start guide is “…change to the directory that you want to back up” (which they confusingly call the “repository”). Let’s assume you want to back up everything under the /home directory. Next we need to create a directory on OneDrive for storing our backups, and obtain authorization to use it. You probably don’t want to synchronise this new folder to your PC, so if you use OneDrive on Windows, open your OneDrive settings (taskbar > cloud symbol > More > Settings): Using a web browser, log in to and select Files > New > Folder and give this folder a suitable name, such as “Duplicacy”. Then click “Choose folders” and make sure the new backup folder is NOT selected. Next, visit in a web browser and click “Download my credentials as one-token.json” (links for other storage providers are here). ![]() Upload this to the “repository” location on your server (e.g. You can do this using WinSCP (Windows) or Transmit (OSX). (Optional) It’s considered good practice to encrypt “data at rest”, which can be enabled using the ‘-e’ option below. I recommend generating a strong, unique password and saving it in a password manager.įinally you need to choose a “repository id” to identify this computer. #INSTALL DUPLICACY CLI ONLY FREE PASSWORD# You will be asked “Enter the path of the OneDrive token file (downloadable from ):” and the answer will be the filename and location you used above, for example: one-token.json Putting this all together, we can now initialise Duplicacy with the following command: duplicacy init -e server1 one://Duplicacy A good choice would be the hostname (it must only contain letters, numerals, dashes or underscores).
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |