-3

So I have a NAS where I put photos.

$ ls -l
total 161
drwx------ 1 david david      0 jul  5  2020 '2001 09 Republica Domicana'
drwx------ 1 david david      0 out  5  2021  2003
...
drwx------ 1 david david      0 fev  4  2020 '2020 01 Andorra'
drwx------ 1 david david      0 ago 15  2020 '2020 02-05'
drwx------ 1 david david      0 ago 14  2020 '2020 06 Evora'
drwx------ 1 david david      0 ago 17  2020 '2020 08 Summer'
drwx------ 1 david david      0 jul 11  2021 '2020 09 Car Crash'
drwx------ 1 david david      0 nov 29  2021  2021
drwx------ 1 david david      0 nov 29  2021 '2021 07-09 Wedding'
...
drwx------ 1 david david      0 out  9 10:30 '2023 09 Amsterdam'
drwx------ 1 david david      0 set 26 14:48 '2023 09 Norway'

Every couple of months, I back it up. I plug in my HDD into my machine, and rsync all the files from the NAS into the HDD.

rsync -av --delete "$nas" "$local_hdd"

But the issue is that some folders don't show up on the HDD. They exist, I can cd into them and ls the photos inside, but they don't show up on the parent directory.

$ ll
total 2748
drwxrwxrwx 1 david david  28672 set  3 10:16  ./
drwxrwxrwx 1 david david   8192 set  3 10:16  ../
drwxrwxrwx 1 david david   4096 jul  5  2020 '2001 09 Republica Domicana'/
drwxrwxrwx 1 david david      0 out  5  2021  2003/
...
drwxrwxrwx 1 david david  32768 fev  4  2020 '2020 01 Andorra'/
drwxrwxrwx 1 david david  24576 ago 15  2020 '2020 02-05'/
drwxrwxrwx 1 david david  12288 ago 14  2020 '2020 06 Evora'/
drwxrwxrwx 1 david david      0 ago 17  2020 '2020 08 Summer'/
drwxrwxrwx 1 david david   4096 jul 11  2021 '2020 09 Car Crash'/
$ ls '2023 09 Norway'
IMG-20230101-WA0000.jpg    IMG-20230222-WA0003.jpeg   IMG_20230415_093938.jpg
IMG-20230108-WA0001.jpeg   IMG-20230222-WA0005.jpeg   IMG_20230415_094142.jpg

So what's happening? I worry rsync is fumbling something up, since the total amount of files in the HDD says 2748 and I definitely don't that many folders.

Any ideas on how I can fix this? Maybe after rsync I need to run some utility to fix the filesystem.

0

You must log in to answer this question.

Browse other questions tagged .