Tag: SRE

3 posts

Backup my Linux servers to Google Drive

1 min read

I'd created my own backup script to keep a copy of $HOME to all my Linux servers.Install Google Drive to your Linux ServerFirst, you’ll need to install Google Drive to your Linux machine (debian or ubuntu tested)wget -O drive https://drive.google.com/uc?id=0B3X9GlR6EmbnMHBMVWtKaEZXdDgsudo mv

Delete files from Google Drive folders after 7 days

1 min read

Code Appsfunction DeleteOldFiles() { var Folders = new Array( 'FOLDER_ID_HERE', // My trash movies folder 'FOLDER_ID_HERE' // My backup servers folder ); var Files; Logger.clear(); for each (var FolderID in Folders) { Folder = DriveApp.getFolderById(FolderID) Files = Folder.getFiles(); while (Files.hasNext()) { var File = Files.next(); if (new Date() - File.

How We Switched to a Continuous Delivery Pipeline in 3 months

7 min read

First MonthBackgroundOur deployment strategy was very old and manual due to several reasons:Deployment was manual (build, publish/promote, release and deploy)Functional and technical tests were manualThe release pipeline took long times to be pushed to productionOften defect and rollback for a releaseHigh coupling between Infrastructure & dev teams