/ Published in: Bash
URL: http://ubuntuforums.org/showthread.php?t=35087
Expand |
Embed | Plain Text
# Use this in the root folder to compress your server into a tgz tar cvpzf backup.tgz --exclude=/proc --exclude=/lost+found --exclude=/backup.tgz --exclude=/mnt --exclude=/sys # Add more excludes depending of your server... tar cvpzf backup.tgz --exclude=/proc --exclude=/lost+found --exclude=/backup.tgz --exclude=/mnt --exclude=/sys --exclude=/old --exclude=/aquota.user --exclude=/aquota.group / backup.sh #!/bin/bash today=$(date '+%d_%m_%y') tar cvpzf /var/backups/backup_"$today".tgz --exclude=/proc --exclude=/lost+found --exclude=/var/backups --exclude=/backup.tgz --exclude=/mnt --exclude=/sys --exclude=/old --exclude=/aquota.user --exclude=/aquota.group /
You need to login to post a comment.
