The short rad stands for "recursive after date".
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
alpcentaur a4ce9ed5c0 added usage paragraph to README.md 6 months ago
README.md added usage paragraph to README.md 6 months ago
rad_extract.bash first commit 6 months ago
rad_incect.bash first commit 6 months ago

README.md

 ____      _    ____  
|  _ \    / \  |  _ \ 
| |_) |  / _ \ | | | |
|  _ <  / ___ \| |_| |
|_| \_\/_/   \_\____/ 
                      

General

RAD (recursive after date) is a bash script for keeping two big folders in sync fast. This is archieved by only copying the last changes after a certain date. Originally it was created to keep a Nextcloud Twin in sync to a running Nextcloud Instance, for fast recovery.

When doing that, keep in mind that decks are not stored in data. You can periodically export the decks data of each user to its data dir.

This can be achieved by the command:

sudo -u www-data /var/www/nextcloud/occ decks:export <user-id> > /var/www/nextcloud/data/<user-id>/files

Usage

Go to the folder containing the folder that you want to backup.

For example, to backup /var/www/nextcloud/data, do

cd /var/www/nextcloud

Then create the backupfolder and go into it

mkdir data-backup
cd data-backup

Now you should be in

/var/www/nextcloud/data-backup

whereas the data folder should be in the same dir as data-backup

/var/www/nextcloud/data

Now change the variables accordingly in the extract and inject script.

The extract script will create a copy of data and its subdirs, if they contain data after the date specified.

After that, the inject script will copy to folder specified in the script.