script update and memory increase for notifier

This commit is contained in:
Mentor 2022-06-13 09:15:21 +02:00
parent 14006ad38c
commit be8f0839e4
3 changed files with 7 additions and 5 deletions

View File

@ -25,4 +25,4 @@ exports.rinkebyGenerateOutfitsOnQueue = functions.runWith( runtime ).firestore.d
// Daemons
// /////////////////////////////*/
const { notify_holders_of_changing_room_updates } = require( './integrations/changingroom' )
exports.notify_holders_of_changing_room_updates = functions.pubsub.schedule( '0 0 * * *' ).onRun( notify_holders_of_changing_room_updates )
exports.notify_holders_of_changing_room_updates = functions.runWith( runtime ).pubsub.schedule( '0 0 * * *' ).onRun( notify_holders_of_changing_room_updates )

View File

@ -8,7 +8,7 @@
},
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"backup": "zsh ./scripts/backup-images.zsh"
"backup": "caffeinate zsh ./scripts/backup-images.zsh"
},
"author": "Mentor Palokaj <mentor@palokaj.co> (http://github.com/actuallymentor)",
"license": "MIT",

View File

@ -3,12 +3,14 @@
## I intend to make this an online thing
## But the storage cost is a bit expensive
## ###############
brew update
brew install pigz
timestamp=$( date )
cd .backups && \
gcloud config set project rocketeer-nft && \
gsutil -m cp -r gs://rocketeer-nft.appspot.com/mainnetRocketeers/ ./rocketeer-image-backups/ && \
tar -cv rocketeer-image-backups | gzip -9 > rocketeer-backup-$timestamp.tar.gz && \
mv rocketeer-backup-$timestamp.tar.gz ~/Google\ Drive/Backup/Rocketeers/
echo "✅ success" || echo "🛑 fail"
tar -cv rocketeer-image-backups | pigz -9 > rocketeer-backup-$timestamp.tar.gz && \
cp rocketeer-backup-$timestamp.tar.gz ~/Google\ Drive/My\ Drive/Backup/Rocketeers/ && \
echo "$(date) success" || echo "🛑 $(date) fail"
say "Backup process done"