Skip to content
Snippets Groups Projects
Commit eb8d3f31 authored by Robin Obůrka's avatar Robin Obůrka
Browse files

backup: Move all backup directories to one place

parent af1bb521
No related merge requests found
......@@ -28,7 +28,7 @@
set -e
purge_dir() {
find "$1" -mtime +"$2" -delete
find data/"$1" -mtime +"$2" -delete
}
purge_dir turris 8
......
......@@ -29,7 +29,7 @@ set -e
# The first line of the remote command should be the directory to store to
read DIRECTORY
cd "$DIRECTORY"
cd data/"$DIRECTORY"
DATE="$(date +%Y-%m-%d-%H-%M)"
NAME="$DATE".bz2.gpg
touch "$NAME"
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment