Hi folks,
I run an rsync backup of a directory from a Pi to my NAS on a nightly basis and I've just realised that the hidden .git directory within /home/sysop/spidr isn't being copied.
The NAS is mounted at /home/pi/spiderback and backups go into a 'spider' directory in there which is just the date and time.
This is the command I'm running nightly via cron.
I've been trying with little success to make it copy that hidden directory as well.
Can anyone help please?
Thanks.
I run an rsync backup of a directory from a Pi to my NAS on a nightly basis and I've just realised that the hidden .git directory within /home/sysop/spidr isn't being copied.
The NAS is mounted at /home/pi/spiderback and backups go into a 'spider' directory in there which is just the date and time.

This is the command I'm running nightly via cron.
Code:
rsync -aH /home/sysop/spider/ /home/pi/spiderback/spider/"$(date +'%Y-%m-%d-%H-%M-%S')"/
I've been trying with little success to make it copy that hidden directory as well.
Can anyone help please?
Thanks.