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!

--exclude-from did not work

Synchronize files & directories to/from XigmaNAS with minimal data transfer.
Forum rules
Set-Up GuideFAQsForum Rules
Post Reply
just_backup
NewUser
NewUser
Posts: 1
Joined: 08 Jul 2016 02:08
Status: Offline

--exclude-from did not work

Post by just_backup »

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.

User avatar
crest
Hardware & Software Guru
Hardware & Software Guru
Posts: 538
Joined: 02 Jul 2012 22:25
Location: Vienna, Austria - GMT+1
Status: Offline

Re: --exclude-from did not work

Post by crest »

Hello just_backup,
welcome to the forum.
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/
May be a typo OR the reason - in the above line a "t" is missing -> .txt ???
$ cat /root/home_backup_exclude.txt
.cache
.bash_history
.gvfs
Are you running the rsync job with the user root? Otherwise it won't have access to the /root directory ...

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:

Post Reply

Return to “RSYNC”