Skip to content

Instantly share code, notes, and snippets.

View clement-parisot's full-sized avatar
👨‍💻
Let's code together!

Clément Parisot clement-parisot

👨‍💻
Let's code together!
View GitHub Profile
@clement-parisot
clement-parisot / backup-para.sh
Created December 6, 2017 15:16
Grid'5000 Backup homedir in parallel
#!/bin/bash -l
function backup {
s="$1"
LOCATION="/media/cparisot/BACKUP_CPARISOT/G5K/"
BACKUP_DIR="${LOCATION}/$s"
LOG_FILE="${BACKUP_DIR}/backup.log"
LOG="tee -a ${LOG_FILE}"
RSYNC_CMD="rsync -avpP --delete --partial $s.g5k:/home/cparisot ${BACKUP_DIR}/"
mkdir -p ${BACKUP_DIR};
touch $LOG_FILE | $LOG;

Keybase proof

I hereby claim:

  • I am clement-parisot on github.
  • I am cparisot (https://keybase.io/cparisot) on keybase.
  • I have a public key ASBJwfUuV7pVEJxB1b06PsvSZQckPgeZNDVOWExn2sjfcwo

To claim this, I am signing this object: