-
-
Save orlea/369d43675b5d66d5951a39fe5a7b6184 to your computer and use it in GitHub Desktop.
transfer_nginx_log_to_gdrive_with_rclone.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
set -uxe | |
cp /var/log/nginx/access.log.1 ~/access-`date +%Y-%m-%d-%H%M`.log | |
rclone copy ~/access-`date +%Y-%m-%d-%H%M`.log gsuite:logs/mstdn.asterism.xyz-nginx/ | |
rm -f ~/access-`date +%Y-%m-%d-%H%M`.log |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment