File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -7,7 +7,18 @@ REMOTE_BACKUP_DIR="/mnt/backup-server/.config"
77LOG_FILE=" /var/log/rsync-config-backup.log"
88TIMESTAMP=$( date +' %Y-%m-%d_%H%M%S' )
99ARCHIVE_NAME=" config_backup_$TIMESTAMP .tar.gz"
10- EXCLUDE_PATTERNS=(' --exclude=*.jpg' ' --exclude=*.jpeg' ' --exclude=*.png' ' --exclude=*.gif' ' --exclude=*.mp3' ' --exclude=*.mp4' ' --exclude=*.avi' ' --exclude=*.mkv' ' --exclude=*.flac' )
10+ EXCLUDE_PATTERNS=(
11+ ' --exclude=*.jpg'
12+ ' --exclude=*.jpeg'
13+ ' --exclude=*.png'
14+ ' --exclude=*.gif'
15+ ' --exclude=*.mp3'
16+ ' --exclude=*.mp4'
17+ ' --exclude=*.avi'
18+ ' --exclude=*.mkv'
19+ ' --exclude=*.flac'
20+ ' --exclude=plexmediaserver/*'
21+ )
1122
1223# Create the archive in /tmp
1324tar -czvf " $TEMP_BACKUP_DIR /$ARCHIVE_NAME " " ${EXCLUDE_PATTERNS[@]} " -C " $SOURCE_DIR " . > " $LOG_FILE " 2>&1
You can’t perform that action at this time.
0 commit comments