

Actually the command adds items to exclude list: dropbox exclude add "Dropbox/books/" Third create dropbox folder for backup copies: mkdir ~/Dropbox/backupsįourth prepare folder for reverse-sync (unsync unnecessary folders)įor example, your Dropbox folder has subfolders and a file: backups When next night Discourse removes old backup file, rsync removes it from Dropbox as well. I don’t use it.Ĭommands to manage the daemon: dropbox statusĬheck your autostart script has been created (click to expand hidden text): #cat /etc/systemd/system/rviceĮxecStart=/bin/sh -c '/usr/local/bin/dropbox start'ĮxecStop=/bin/sh -c '/usr/local/bin/dropbox stop'ĭiscourse provides backup files and it manages their number and the frequency.Ĭrontab rsync task copies new backup to local Dropbox folder.Īfter that Dropbox uploads new file to the cloud. Official Dropbox recommends to download Python script to manage your daemon. After that a directory Dropbox will be created in your home folder. You need to copy and paste it to web browser and follow the instructions. When you first use Dropbox at your server you will see a uniq weblink. Second connect your server to Dropbox with shell commands ( important: because I run the service as root, I am logged as root at this step - so you may try your regular user): cd ~ & wget -O - "" | tar xzf. Maximum backups (3) - this manages how many files will retain in Dropboxīackup gzip compression level (6) - choose between compress speed (1) or less size (9), but in case of VPS your host provider my restart your server in case of long high CPU utilization To access your backups you don’t need root grants, but I run dropbox daemon as root in this guide (probably unsafe, welcome to improve)įirst you need to setup backups in Discourse at /admin/site_settings/category/backups (my custom values in brackets).Earlier Dropbox allowed symlinks but currently this feature is not available. You have to create an additional rsync script to sync between Discourse backup folder and local Dropbox backup folder.Or as Dropbox a two-way solution, it may populate your server with all data from the cloud. When you will run dropbox to your linux server, then you need to synchronizethe only one folder.


