03.08.2017
inotify-tools
Optionally: 7Zip, Zip
$ git clone --depth 1 https://github.com/CAI79/Linux-shadow-copies.git
$ cd Linux-shadow-copies
$ cp sc_handler /usr/local/sbin/
$ cp shadow_copies.service /usr/lib/systemd/system/
# if You want to contol more then 1 directory:
$ cp sc_group /usr/local/sbin/
To control only one directory:
$ nano /usr/lib/systemd/system/shadow_copies.service
- Comment "ExecStart=/usr/local/sbin/sc_group" line.
- Uncomment next 6 lines and set correct options.
To control more then one directories:
$ nano /usr/local/sbin/sc_group
Add sc_handler commands for all directories You want to be monitored.
Execute following command to view full list of available options:
/usr/local/sbin/sc_handler --help
$ systemctl enable shadow_copies.service
$ systemctl start shadow_copies.service