Questions tagged [rsync]
For questions about the rsync tool, which is a Unix utility for synchronizing files across computer systems.
133
questions
0
votes
0
answers
60
views
Shell script can't be executed by LaunchDeamon or LaunchAgent
macOS 14.2.1 (23C71)
I have this shell script which copies a folder to an external hard drive using rsync:
#!/bin/bash
SOURCE_DIR="/Users/tristan/Library/Application Support/Postgres/var-16"...
1
vote
1
answer
30
views
Create a local snapshot of an external drive in macOS
I'd like to backup my external drives to my NAS using rsync and not Time Machine, because I occasionally want to actually use these files on the remote server.
I'd like to create an APFS snapshot ...
0
votes
0
answers
17
views
rsnapshot backup fails with cryptomator mounted volume
I have rsnapshot (on macos) setup for my backups and in the config file one of the locations I am trying to back up is a Volume mounted by Cryptomator. Relevant line in config file:
backup /Users/...
1
vote
1
answer
200
views
Convert absolute paths into relative path for rsync
I try to sync to folders, but with exceptions made by tags.
So I learned, that I need different commands to build up that job.
First I create a file of excluded files, which have a tag in orange or ...
1
vote
0
answers
52
views
scp/rsync hangs when trying to connect to a very old Mac
I am trying to transfer files from an ancient Mac (OS 10.5.8) that has not been upgraded for years to a new (Ventura 13.3.1) machine and find that scp and rsync don't work. The old Mac is visible in ...
1
vote
0
answers
55
views
Cron and launchd rsync/ssh job do not work when screen is locked
I have implemented a bash script to perform a backup to a remote server over ssh using rsync. Running the script in the terminal works correctly. I then scheduled a crontab job to run this script ...
0
votes
0
answers
20
views
Tell rsync to not update times on files not copied
I'm apparently having trouble understand rsync’s man page.
I have a website that serves pages derived by PHP from a database.
I run a cron job on the webserver that pulls records from the database and ...
5
votes
2
answers
487
views
What am I missing when rsync copies only my files, but does not create the directory that contains the files?
My command on macOS is:
rsync -rav mydir/ /Volumes/usb1/
My expection was that due to the slash at the end of mydir/, rsync would create a directory Volumes/usb1/mydir, and copy the directory tree ...
2
votes
1
answer
125
views
How to pass file expansion patterns across an ssh/rsync connection
I'm new to macOS but I have some experience in Linux. Now I am encountering some problems with different styles of command lines between macOS and Linux and I hope someone can help me.
In Linux, if I ...
0
votes
0
answers
181
views
On Ventura, running rsync from launchd gives permissions error
This problem is similar to questions at the following:
rsync errors, but only when run in launchd
rsync "Operation not permitted (1)" error only when run in launchd
Permissions errors when ...
3
votes
0
answers
168
views
Kernel Panic - RSYNC 3.2.7 - While backing up to (SMB) Network Drive/NAS
Kernel Panic / Crash using rsync 3.2.7
I am trying to do this with Launch Control but it also crashes when I run this script from Terminal:
#!/bin/zsh
/opt/homebrew/Cellar/rsync/3.2.7_1/bin/rsync -...
0
votes
1
answer
234
views
launchd exit status "-9"
I have a couple of launchd jobs starting a rsync wrapper script. They have been running fine for at least 3 years, but now most of them fail with exit status -9. All jobs are configured like this (...
1
vote
1
answer
79
views
How to only overwrite metadata (specifically date file attributes) between files that have the same contents with the older/more accurate attributes?
I have a situation where a backup has correct Date Modified and other correct metadata. A large volume of these files were copied accidentally without the correct rsync flags (eg, rsync -a does not ...
3
votes
2
answers
729
views
rsync : Show deleted files
I'm in the process of porting scripts which use rsync to MacOS 10.15.7.
Typical commands in these scripts look like
rsync -rau --delete SOURCE DESTINATION
Is there a way to display, which files have ...
0
votes
1
answer
314
views
Backup using `rsync` fails because of a file that is not even into the source directory to be backed up
I am trying to backup the /User/user01/Library using rsync (via the linux-timemachine wrapper https://github.com/cytopia/linux-timemachine) to an external hard drive Volumes/name_of_backup logged in ...