I played a bit more with S3Sync and I don't think it necessarily stops on the first sub-directory. It'll sync one directory after the other until it hits one it can't sync (for whatever reason) and then it stops. It just happens that on my first try it stopped after the first directory. I pipe the S3Sync output to a log file and I see nothing special. No error message. It just stops.
One thing of interest (that may or may not explain my problem). All my servers backup to a backup server in a directory named backups (how many time can you say backup in one sentence?). Every night I take a snapshot of this directory (cp -al ...) and I (try to) S3Sync that snapshot. Can this be my problem? Would S3Sync stop on some hard links?
Here's the snapshot script I use:
Code:
#!/bin/bash
#Keep a snapshot of the last 30 days
MAX_DAYS=30
BACKUP_PATH="/backups"
rm -rf $BACKUP_PATH.30
for ((X=$MAX_DAYS; X > 1; X--))
do
mv $BACKUP_PATH.$(($X-1)) $BACKUP_PATH.$X
done
cp -al $BACKUP_PATH/. $BACKUP_PATH.1
#Keep a snapshot of the last 30 days
MAX_DAYS=30
BACKUP_PATH="/backups"
rm -rf $BACKUP_PATH.30
for ((X=$MAX_DAYS; X > 1; X--))
do
mv $BACKUP_PATH.$(($X-1)) $BACKUP_PATH.$X
done
cp -al $BACKUP_PATH/. $BACKUP_PATH.1