7302baf9fa084c093235614dd6e3e80d968647e3
Dated_Folder_Backup
This is a command line bash script with arguments used to compress a folder and store it in given location with a specific system user owner. It uses Bzip2 compression, this can be used in any situation you desire, for example you can use it on a daily cronjob to backup your website folder. Run it with sudo or has root like:
sudo bash backing.sh [file_name] [destination] [source] [owner].
For example:
sudo bash backing.sh mywebsite /home/ricardo/backups /var/www/mywebsite ricardo
Description
This is a command line bash script with arguments used to compress a folder and store it in given location with a specific system user owner.
It uses Bzip2 compression.
Languages
Shell
100%