Skip to content

Commit

Permalink
Update backup sync for calib temporary mount
Browse files Browse the repository at this point in the history
  • Loading branch information
joseph-long committed Nov 19, 2024
1 parent 3aa9ccd commit 1bb785c
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions scripts/instrument_backup_sync
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,15 @@ if ! mount | grep -q "on $dest"; then
exit 1
fi
for remote in icc rtc; do
if ! mount | grep -q "$remote:/data on /srv/$remote/data"; then
echo "NFS mount appears not to be active for $remote"
exit 1
fi
for folder in data calib; do
if ! mount | grep -q "on /srv/$remote/$folder"; then
echo "NFS mount appears not to be active for on /srv/$remote/$folder"
exit 1
fi
done
done

rsyncWithOptions="rsync --exclude='**/*_2022*' --exclude='**/*_2023*' --exclude='**/*_202403*' --exclude='**/*_202405*' -a --info=progress2"
rsyncWithOptions="rsync --exclude='/data/obs/**' --exclude='**/*_2022*' --exclude='**/*_2023*' --exclude='**/*_202403*' --exclude='**/*_202405*' -a --info=progress2"

mkdir -p $dest/aoc/
$rsyncWithOptions /data/ $dest/aoc/
Expand Down

0 comments on commit 1bb785c

Please sign in to comment.