![]() ![]() It will launch apt-get update, then find all GPG errors and. #!/bin/bash # pantheon-backup-to-s3.sh # Script to backup Pantheon sites and copy to Amazon s3 bucket # Requirements: # - Pantheon terminus cli # - Valid terminus machine token # - Amazon aws cli # - s3 cli access and user configured # The amazon S3 bucket to save the backups to (must already exist) S3BUCKET = "" # Optionally specify bucket region S3BUCKETREGION = "" # The Pantheon terminus user (email address) TERMINUSUSER = "" # Site names to backup (e.g. You can try my script to automatically receive all GPG keys for PPAs you use: smartupdate.sh. If you are a team owner or editor, choose one of the. ![]() If the login is on a tty, and no command has been specified, prints last login time and /etc/motd (unless prevented in the configuration file or by /.hushlogin see the FILES section). In the Script field, enter a command (s) that should be executed. If you look in man sshd, youll see that it says: LOGIN PROCESS When a user successfully logs in, sshd does the following: 1. (Optionally) in the Label field, provide a name for the snippet. 'site-one site-two') SITENAMES = "" # Site environments to backup (any combination of dev, test and live) SITEENVS = "dev live" # Elements of backup to be downloaded. (Optionally) in the Add a package menu, select a package in which you want to place the snippet. $thisenv # iterate through backup elements for element in $ELEMENTS do # download current site backups if ] then Terminus auth:login -email $TERMINUSUSER # iterate through sites to backup for thissite in $SITENAMES do # iterate through current site environments for thisenv in $SITEENVS do # create backup TERMIUS CHROME UPDATEĮLEMENTS = "code files db" # Local backup directory (must exist, requires trailing slash) BACKUPDIR = "/" # Add a date and unique string to the filename BACKUPDATE = $( date +%Y%m%d%s ) # This sets the proper file extension EXTENSION = "tar.gz" DBEXTENSION = "sql.gz" # Hide Terminus update messages TERMINUS_HIDE_UPDATE_MESSAGES = 1 # connect to terminus Terminus backup:get -element = $element -to = $BACKUPDIR $thissite. ![]()
0 Comments
Leave a Reply. |