diff --git a/functions/index.js b/functions/index.js index 35f4113..7a211ea 100644 --- a/functions/index.js +++ b/functions/index.js @@ -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 ) \ No newline at end of file +exports.notify_holders_of_changing_room_updates = functions.runWith( runtime ).pubsub.schedule( '0 0 * * *' ).onRun( notify_holders_of_changing_room_updates ) \ No newline at end of file diff --git a/package.json b/package.json index 53eea29..7415c2b 100644 --- a/package.json +++ b/package.json @@ -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 (http://github.com/actuallymentor)", "license": "MIT", diff --git a/scripts/backup-images.zsh b/scripts/backup-images.zsh index b522ee6..c5c15d8 100644 --- a/scripts/backup-images.zsh +++ b/scripts/backup-images.zsh @@ -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"