How to backup Contabo Virtual Private Server (VPS) Ubuntu Linux iRedMail Mail Server using the tar utility
# cd /
# nohup tar -cvpjf backup.tar.bz2 \
--exclude=/backup.tar.bz2 \
--exclude=/nohup.out \
--exclude=/swapfile \
--exclude=/proc \
--exclude=/tmp \
--exclude=/dev \
--exclude=/sys \
--exclude=/run / &
# tail -f nohup.out
# du -h backup.tar.bz2
2.8G backup.tar.bz2
# mv backup.tar.bz2 contabo-ubuntu-iredmail-24sep2021.tar.bz2
Check if the backup job has finished.
# ps -ef | grep tar
Comments
Post a Comment