Hi,
I am running rsync for home directory backup in CentOS 6. I added following home_backup_exclude.txt file in --exclude-from=/root/home_backup_exclude.txt, but the excluded dir and files are still being transferred. How can I fixed it?
$ rsync -av --exclude-from="/root/home_backup_exclude.tx" /home /Backup/
$ cat /root/home_backup_exclude.txt
.cache
.bash_history
.gvfs
Thank you.
Kind regards.
This is the old XigmaNAS forum in read only mode,
it will taken offline by the end of march 2021!
I like to aks Users and Admins to rewrite/take over important post from here into the new fresh main forum!
Its not possible for us to export from here and import it to the main forum!
it will taken offline by the end of march 2021!
I like to aks Users and Admins to rewrite/take over important post from here into the new fresh main forum!
Its not possible for us to export from here and import it to the main forum!
--exclude-from did not work
-
just_backup
- NewUser

- Posts: 1
- Joined: 08 Jul 2016 02:08
- Status: Offline
- crest
- Hardware & Software Guru

- Posts: 538
- Joined: 02 Jul 2012 22:25
- Location: Vienna, Austria - GMT+1
- Status: Offline
Re: --exclude-from did not work
Hello just_backup,
welcome to the forum.
Regards
crest
welcome to the forum.
May be a typo OR the reason - in the above line a "t" is missing -> .txt ???just_backup wrote:Hi,
I am running rsync for home directory backup in CentOS 6. I added following home_backup_exclude.txt file in --exclude-from=/root/home_backup_exclude.txt, but the excluded dir and files are still being transferred. How can I fixed it?
$ rsync -av --exclude-from="/root/home_backup_exclude.tx" /home /Backup/
Are you running the rsync job with the user root? Otherwise it won't have access to the /root directory ...$ cat /root/home_backup_exclude.txt
.cache
.bash_history
.gvfs
Regards
crest
NAS1: 11.2.0.4 - Omnius (Revision 6766) x64-embedded; MSI 760GM-P23; AMD Athlon(tm) II X2 250 7.58GiB RAM
NAS2: 11.2.0.4 - Omnius (Revision 6766) x64-embedded; MSI MS-7369; AMD Sempron(tm) LE-1250 8022MiB RAM
UPS: APC Back-UPS ES 550G
Extensions: OneButtonInstaller, Extended GUI, NextOwnCloud, BitTorrent Sync, Syncthing, Downloady, Midnight Commander, NCDU, MySQL, Rclone, Themes:
NAS2: 11.2.0.4 - Omnius (Revision 6766) x64-embedded; MSI MS-7369; AMD Sempron(tm) LE-1250 8022MiB RAM
UPS: APC Back-UPS ES 550G
Extensions: OneButtonInstaller, Extended GUI, NextOwnCloud, BitTorrent Sync, Syncthing, Downloady, Midnight Commander, NCDU, MySQL, Rclone, Themes: