Created
November 7, 2012 12:36
-
-
Save Alir3z4/4031372 to your computer and use it in GitHub Desktop.
dummy bk file
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Author Alireza Savand | |
# CopyRight 2012 Alireza Savand | |
# Back up | |
echo "===========================================" | |
echo "Start to get /home/vmail dir backup" | |
echo "===========================================" | |
echo "" | |
echo "Compressing format gzip2" | |
echo "" | |
# SAVE/Backup File Name [full path] | |
FILE_PATH="/opt/backup/vmail-backup/vmail-backup-[$(date +%F_%H-%M-%S)].tbz2" | |
echo "Save to ${FILE_PATH}" | |
tar -jcvf $FILE_PATH /home/vmail || return 1 | |
echo "Compressed and moved to $FILE_PATH" | |
# end of the file |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment