Hi all,
I’m running an up-to-date TrueNAS SCALE ElectricEel 24.10 [release].
I’m trying to setup a local backup of my nextcloud located remote. therefore I’vr created an Cloud Sync Task. Basically this Sync Task is working well until it comes to symbolic links.
It doesn’t matter wether I activate the option “Follow Symlinks” or not. The sync task always follow the symbolic links. As the directory structure on the source creates circular link structure the sync tasks creates a basically never ending directory structure in the destination.
Here are the options I use:
Direction: PULL
Transfermode: SYNC
Remote Folder: /home/test
Destination Directory: /mnt/CloudBackup/test
Create empty source dirs on destination after sync : True
Follow Symlinks: False
Please find the error message form my last test below. Therefor I’ve used some simple directory structure with a symlink back to an upper level directory.
$ ls -la ~/test/test-level1/test-level2/
drwxr-xr-x 2 xxxxx xxxxx 57 15. Jan 22:07 .
drwxr-xr-x 3 xxxxx xxxxx 64 15. Jan 22:52 ..
-rw-r--r-- 1 xxxxx xxxxx 0 15. Jan 22:06 file3
-rw-r--r-- 1 xxxxx xxxxx 0 15. Jan 22:06 file4
lrwxrwxrwx 1 xxxxx xxxxx 18 15. Jan 22:07 link -> ../../test-level1/
this creates the following on the destination:
admin@truenas[...kup/home/test/test-level1/test-level2]$ ls -la
total 3
drwxr-xr-x 3 root root 5 Jan 15 22:55 .
drwxr-xr-x 3 root root 5 Jan 15 22:55 ..
-rw-r--r-- 1 root root 0 Jan 15 22:06 file3
-rw-r--r-- 1 root root 0 Jan 15 22:06 file4
drwxr-xr-x 3 root root 5 Jan 15 22:55 link
Where the linl directory again includes test-level1 directory.
I appriciate any help.
2025/01/15 22:55:27 INFO : test-level1: Made directory with metadata (mtime=2025-01-15T22:52:18+01:00)
2025/01/15 22:55:27 INFO : file5: Copied (new)
2025/01/15 22:55:28 INFO : test-level1/test-level2: Made directory with metadata (mtime=2025-01-15T22:07:12+01:00)
2025/01/15 22:55:28 INFO :
Transferred: 0 B / 0 B, -, 0 B/s, ETA -
Transferred: 1 / 3, 33%
Elapsed time: 1.5s
Transferring:
* test-level1/file1: 0% /0, 0/s, -
* test-level1/file2: 0% /0, 0/s, -
... 494 more lines ...
2025/01/15 22:56:01 INFO : test-level1/test-level2/link/test-level2/link/test-level2/link: Set directory modification time (using SetModTime)
2025/01/15 22:56:01 INFO : test-level1/test-level2/link/test-level2/link/test-level2: Set directory modification time (using SetModTime)
2025/01/15 22:56:01 INFO : test-level1/test-level2/link/test-level2/link: Set directory modification time (using SetModTime)
2025/01/15 22:56:01 INFO : test-level1/test-level2/link/test-level2: Set directory modification time (using SetModTime)
2025/01/15 22:56:01 INFO : test-level1/test-level2/link: Set directory modification time (using SetModTime)
2025/01/15 22:56:01 INFO : test-level1/test-level2: Set directory modification time (using SetModTime)
2025/01/15 22:56:01 INFO : test-level1: Set directory modification time (using SetModTime)
2025/01/15 22:56:01 ERROR : Local file system at /mnt/Backup Pool/Backup/home/test: not deleting directories as there were IO errors
2025/01/15 22:56:01 ERROR : Attempt 3/3 failed with 1 errors and: failed to open source object: Open failed: file does not exist
2025/01/15 22:56:01 Failed to sync: failed to open source object: Open failed: file does not exist