]> gitweb.fluxo.info Git - hydra.git/commitdiff
Detect if removable media is a system or a regular storage volume at sync-backups
authorSilvio Rhatto <rhatto@riseup.net>
Wed, 2 Aug 2017 01:35:37 +0000 (22:35 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Wed, 2 Aug 2017 01:35:37 +0000 (22:35 -0300)
share/hydractl/sync-backups

index aa92754fe0406c7f79bdc59404b0fd1c15542839..c04fa2fabef27cda21cc45d69ff956e78db459f1 100755 (executable)
@@ -64,6 +64,11 @@ else
   shift
 fi
 
+# Detect if removable media is a system or a regular storage volume
+if [ -d "$MEDIA/var/backups/remote" ]; then
+  MEDIA="$MEDIA/var/backups/remote"
+fi
+
 # Sync backups for each node.
 if [ ! -z "$*" ]; then
   for NODE in $*; do