

OptionsĪll options can be specified in a configuration file or as command line arguments. If configuration files and/or the backup folder reside in the folder with the GitHub repository, move them to the new location. To migrate from GitHub to Codeberg, it is easiest to rename the folder containing the GitHub repository and then follow the Quick Installation Guide again.
#Qownnotes alternatives upgrade#
If you followed the instructions in the Quick Installation Guide, you just need to pull the new version to upgrade to the latest version: cd /path/to/calcardbackup Take into account that percent signs ( %) need to be escaped to prevent cron from changing them into newline characters. The output of the last run is written to /var/log/calcardbackup.log. Sudo chown 2>&1Ĭron will now execute calcardbackup each day at 02:00am.


Once calcardbackup runs without errors, a cronjob can be setup to run it automatically each day as follows:Ĭreate a logfile and transfer its ownership to the webserver's user (here www-data): optional: setup a cronjob for an automatic daily run There are many more options available: have a look at sections Options and Usage examples. calcardbackup "/var/www/nextcloud"Ĭheck output of script - it will tell, if it needs any other options. Run the script as your webserver's user (here www-data) and give as first argument the path to your ownCloud/Nextcloud instance (here /var/www/nextcloud): optional: package curl to let the script perform some additional checksĬlone the repository to your server (outside of webroot!) and enter the repo:Ĭhange the ownership of repo to your webserver's user (here www-data):.optional: package zip to compress backup as zip-file (instead of tar.gz).optional: package gnupg to encrypt backup.GNU Bash >= 4.2 (check with bash -version).
#Qownnotes alternatives full#
