Skip to content

Commit

Permalink
fix logfile
Browse files Browse the repository at this point in the history
  • Loading branch information
stebo85 authored Dec 14, 2023
1 parent 997efe6 commit 91de6f8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cvmfs/sync_containers_to_cvmfs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,12 @@ if [[ -s $LOCKFILE ]]; then
else
touch $LOCKFILE
echo "running" >> $LOCKFILE
cp ~/cronjob.log ~/cronjob_previous_run.log
rm ~/cronjob.log
fi

echo "Syncing object storages:"
export RCLONE_VERBOSE=2
rclone copy oracle-2021-us-bucket:/neurodesk oracle-2021-sydney-bucket:/neurodesk
rclone sync oracle-2021-us-bucket:/neurodesk/temporary-builds oracle-2021-sydney-bucket:/neurodesk/temporary-builds
rclone copy oracle-2021-sydney-bucket:/neurodesk nectar:/neurodesk/
Expand Down Expand Up @@ -158,7 +161,6 @@ do
done < /home/ec2-user/neurocommand/cvmfs/log.txt

rm -rf $LOCKFILE
rm -rf cronjob.log

# check if catalog is OK:
# cvmfs_server list-catalogs -e
Expand Down

0 comments on commit 91de6f8

Please sign in to comment.