11 lines
510 B
Markdown
11 lines
510 B
Markdown
# 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 |