3/28/2023 0 Comments Duplicacy cache directory![]() ![]() ![]() 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). 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. (Optional) It’s considered good practice to encrypt “data at rest”, which can be enabled using the ‘-e’ option below. You can do this using WinSCP (Windows) or Transmit (OSX). Upload this to the “repository” location on your server (e.g. Next, visit in a web browser and click “Download my credentials as one-token.json” (links for other storage providers are here). Then click “Choose folders” and make sure the new backup folder is NOT selected. 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”. Next we need to create a directory on OneDrive for storing our backups, and obtain authorization to use it. Let’s assume you want to back up everything under the /home directory. 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”). You should see a version number and a list of options. If you now type this simple command duplicacy Mv duplicacy_linux_圆4_2.7.2 /usr/local/bin/duplicacy 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 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. 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). For 64-bit Linux at the time of writing this is duplicacy_linux_圆4_2.7.2. Initial set upįirst, we need to download the latest version of the command line executable appropriate to your operating system. This post is specifically about backing up websites from a Linux server – for backups from Windows see our earlier post. 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 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. Unfortunately, most control panels can’t use this sort of cloud storage they expect to backup by SFTP rather than S3 or WebDAV. The rest of this post assumes you will use that, but other cloud providers can also be used – there is a slightly different process for using Wasabi, for example. To set them up you’ll obviously need somewhere to store them, and the good news is if you have a Microsoft 365 subscription you already have 1 TB of free OneDrive storage that is probably largely unused. 'tag' is the tag assigned to the new snapshot.The best backups are automated (hence frequent), versioned (so you can recover from deleted or hacked files) and off-site (no worries about natural disasters or the host going bust). Otherwise (or if this is the first backup), the entire repository will or timestamps since last backup will be uploaded (however the snapshot is still a full snapshot that shares If 'quickMode' is true, only files with different sizes Backup creates a snapshot for the repository 'top'. NobackupFile string // don't backup directory when this file name is foundįiltersFile string // the path to the filters fileĮxcludeByAttribute bool // don't backup file based on file attributeįunc ( manager * BackupManager) SetDryRun( dryRun bool), 1) SnapshotCache * FileStorage // for copies of chunks needed by snapshotsĬonfig * Config // contains a number of options SnapshotManager * SnapshotManager // the snapshot manager Storage Storage // the storage for storing backups SnapshotID string // Unique id for each repository snapshot management, to the snapshot manager. BackupManager performs the two major operations, backup and restore, and passes other operations, mostly related to Commercial use requires per-user licenses available from Free for personal use and commercial trial ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |