Excluding .cache from backup

This commit is contained in:
Bruno F. Fontes 2018-08-03 12:37:03 -03:00
parent d54d0ab600
commit ce17a61add
Signed by: brunofontes
GPG Key ID: EE3447CE80048495
2 changed files with 2 additions and 4 deletions

View File

@ -10,7 +10,7 @@ mkdir -p "$HDYEARMONTH/LinuxHome/bruno"
mkdir -p "$HDYEARMONTH/LinuxHome/admin" mkdir -p "$HDYEARMONTH/LinuxHome/admin"
mkdir -p "$HDYEARMONTH/LinuxHome/lost+found" mkdir -p "$HDYEARMONTH/LinuxHome/lost+found"
backup="rsync -rptgoDql" backup="rsync -rptgoDql --exclude-from=./exclude"
echo echo
echo "Backup command : $backup" echo "Backup command : $backup"
@ -32,9 +32,6 @@ eval $backup "/home/bruno/" "$HDYEARMONTH/LinuxHome/bruno/" || echo ""
echo -e "\e[97m `date +%r` - Admin\e[39m" echo -e "\e[97m `date +%r` - Admin\e[39m"
eval $backup "/home/admin/" "$HDYEARMONTH/LinuxHome/admin/" || echo "" eval $backup "/home/admin/" "$HDYEARMONTH/LinuxHome/admin/" || echo ""
echo -e "\e[97m `date +%r` - Lost+Found\e[39m"
eval $backup "/home/lost+found/" "$HDYEARMONTH/LinuxHome/lost+found/" || echo ""
echo -e "\e[97m`date +%r` - Copying Localização folder (3/7)...\e[39m" echo -e "\e[97m`date +%r` - Copying Localização folder (3/7)...\e[39m"
eval $backup "/run/media/bruno/Multimedia/Localização" "$HDYEARMONTH/Multimedia/" || echo "" eval $backup "/run/media/bruno/Multimedia/Localização" "$HDYEARMONTH/Multimedia/" || echo ""

1
Backup/exclude Executable file
View File

@ -0,0 +1 @@
.cache*