Files
opt/rsnapshot/usr/local/bin/merge-snaphosts
2024-11-25 09:07:54 +01:00

8 lines
208 B
Bash
Executable File

#! /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