Update Cloud repository location
This commit is contained in:
10
Kumonoboru
10
Kumonoboru
@@ -30,7 +30,7 @@ help()
|
||||
echo "Available repositories:"
|
||||
echo "Gerbil-TK Photos (path: /var/Red-Vol/Media/Pictures)"
|
||||
echo "Pukeko-XYZ-Containers Containers (path: /var/Red-Vol/Media/Containers)"
|
||||
echo "Pukeko-XYZ-Cloud Data from all devices (path: /var/Red-Vol/Media/Cloud/Syncthing)"
|
||||
echo "Pukeko-XYZ-Cloud Data from all devices (path: /var/Red-Vol/Media/Cloud)"
|
||||
exit 0
|
||||
}
|
||||
#Pass arguments to the script
|
||||
@@ -150,10 +150,10 @@ if [[ -n $REPOSITORY ]] && [[ -z $CLEAN ]]; then
|
||||
backup Gerbil-TK /var/Red-Vol/Media/Pictures/
|
||||
;;
|
||||
(Pukeko-XYZ-Containers)
|
||||
backup Pukeko-XYZ-Containers /var/Red-Vol/Media/Containers
|
||||
backup Pukeko-XYZ-Containers /var/Red-Vol/Media/Containers/
|
||||
;;
|
||||
(Pukeko-XYZ-Cloud)
|
||||
backup Pukeko-XYZ-Cloud /var/Red-Vol/Media/Cloud/Syncthing
|
||||
backup Pukeko-XYZ-Cloud /var/Red-Vol/Media/Cloud/
|
||||
;;
|
||||
(*)
|
||||
help;;
|
||||
@@ -161,8 +161,8 @@ if [[ -n $REPOSITORY ]] && [[ -z $CLEAN ]]; then
|
||||
#If cleaning was not forced, backup the repositories
|
||||
elif [[ -z $CLEAN ]]; then
|
||||
backup Gerbil-TK /var/Red-Vol/Media/Pictures/
|
||||
backup Pukeko-XYZ-Containers /var/Red-Vol/Media/Containers
|
||||
backup Pukeko-XYZ-Cloud /var/Red-Vol/Media/Cloud/Syncthing
|
||||
backup Pukeko-XYZ-Containers /var/Red-Vol/Media/Containers/
|
||||
backup Pukeko-XYZ-Cloud /var/Red-Vol/Media/Cloud/
|
||||
#If a specific repository was requested to be cleaned, clean it
|
||||
elif [[ -n $REPOSITORY ]] && [[ -n $CLEAN ]]; then
|
||||
case "$REPOSITORY" in
|
||||
|
||||
Reference in New Issue
Block a user