updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / pacman-cage / backup_pacmandb.cron
bloba129019c697449670933677c6096a4296bc08fef
1 #!/bin/bash
3 PACMAN_LOCAL="/var/lib/pacman/local"
4 BACKUP_DIR="/var/backups/pacman_local_database"
6 # backup local database
7 [[ ! -d ${BACKUP_DIR} ]] && mkdir -p ${BACKUP_DIR}
8 cp -a ${PACMAN_LOCAL} ${BACKUP_DIR}
10 # create timestamp
11 cd ${BACKUP_DIR}; echo "$(date)" >> backup.log