snapshot rsnapshot
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
services:
|
services:
|
||||||
rsnapshot:
|
rsnapshot:
|
||||||
container_name: rsnapshot
|
container_name: rsnapshot
|
||||||
image: linuxserver/rsnapshot:1.4.4
|
image: linuxserver/rsnapshot:1.4.5
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
volumes:
|
volumes:
|
||||||
- /opt/rsnapshot/etc:/etc/rsnapshot
|
- /opt/rsnapshot/etc:/etc/rsnapshot
|
||||||
|
|||||||
3
rsnapshot/usr/local/bin/make-snapshot
Executable file
3
rsnapshot/usr/local/bin/make-snapshot
Executable file
@@ -0,0 +1,3 @@
|
|||||||
|
#! /bin/bash
|
||||||
|
. /etc/container_environment.sh
|
||||||
|
/usr/bin/nice -n 19 /usr/bin/ionice -c2 -n7 /usr/bin/rsnapshot -c /etc/rsnapshot/$1.conf $2
|
||||||
7
rsnapshot/usr/local/bin/merge-snaphosts
Executable file
7
rsnapshot/usr/local/bin/merge-snaphosts
Executable file
@@ -0,0 +1,7 @@
|
|||||||
|
#! /bin/bash
|
||||||
|
DIR=/host/scratch
|
||||||
|
echo $DIR
|
||||||
|
# If the source and destination directories exist then perform the merge
|
||||||
|
[ -d $DIR/$1/$2 ] && [ -d $DIR/$1/$3/ ] && \
|
||||||
|
/bin/cp -al $DIR/$1/$2/* $DIR/$1/$3/
|
||||||
|
exit 0
|
||||||
Reference in New Issue
Block a user