Skip to main content

Questions tagged [rsync]

For questions about the rsync tool, which is a Unix utility for synchronizing files across computer systems.

Filter by
Sorted by
Tagged with
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"...
QGuy's user avatar
  • 11
1 vote
1 answer
28 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 ...
odedia's user avatar
  • 131
0 votes
0 answers
16 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/...
christopher.online's user avatar
1 vote
1 answer
193 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 ...
Peter Silie's user avatar
1 vote
0 answers
49 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 ...
TomR's user avatar
  • 13
1 vote
0 answers
52 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 ...
Alan M.'s user avatar
  • 11
0 votes
0 answers
17 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 ...
WGroleau's user avatar
  • 5,025
5 votes
2 answers
486 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 ...
user1934428's user avatar
2 votes
1 answer
118 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 ...
Jiaqing's user avatar
  • 21
0 votes
0 answers
174 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 ...
Jeffrey Simon's user avatar
3 votes
0 answers
165 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 -...
Fred Maher's user avatar
0 votes
1 answer
219 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 (...
janeden's user avatar
  • 121
1 vote
1 answer
77 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 ...
ylluminate's user avatar
  • 5,401
3 votes
2 answers
722 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 ...
user1934428's user avatar
0 votes
1 answer
307 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 ...
ecjb's user avatar
  • 514
0 votes
0 answers
26 views

rSync, Assuming Destination Directory Permissions

Using rSync, is it possible to have all copied files and directories assume the owner, group, and permissions of the destination directory, whatever they might be? I've played with the following ...
A Bowler Cat's user avatar
0 votes
1 answer
2k views

App to mount iPhone as disk accessible from Terminal [closed]

Is there an app which mounts my iPhone as an external drive on my Mac through wifi so that I can access its files from Terminal? It would be great if I could sync files with rsync (or maybe even ...
rcw62gs9's user avatar
1 vote
0 answers
127 views

New line \n is replaced with \#012

I have created a small alias function to sync my scripts. It worked fine until last week but now in my rsync command it doesn't do the newlines anymore. They are replaced by \#012 rsync: failed to ...
The33Coder's user avatar
0 votes
1 answer
229 views

Weird copying error after updating to MacOs 13.0.1 (22A400)

I have been trying to copy some folders between 2 external hard drives and I am getting this weird error. None of the folders is locked; this never happened before updating to 13.0.1. Any idea how to ...
seralouk's user avatar
  • 111
0 votes
0 answers
318 views

rsync freezes in macos ventura

I often ssh to a server or directly rsync some folder there to my local machine without any special config. After upgrading to MacOS Ventura, they no longer work. rsync just freezes after asking my ...
xiaohuamao's user avatar
1 vote
0 answers
3k views

rsyncing into a OneDrive-synced folder without triggering lots of spurious activity?

I wish to use rsync to copy a lot of data into a OneDrive-synced directory regularly, and leave it up to OneDrive itself to sync that into the cloud. rsync is my tool of choice as I am using it for ...
AnoE's user avatar
  • 578
1 vote
1 answer
2k views

rsync 3.x on M1 Mac

Previously, rsync could simply be upgraded on a Mac to 3.x version by homebrew. As command, I used /usr/local/bin/rsync instead of just rsync (which used the preinstalled 2.x version). On a MacMini M1,...
MacMarkus's user avatar
1 vote
0 answers
56 views

How to transfer terabyte of data faster?

I have a terabyte of data to copy from old external HDD to new external HDD. By the way the new hdd is encrypted via DiskUtility. I'm using macbookpro,two hdd's and two apple's USB-C to USB Adapters ...
alexandergill's user avatar
1 vote
1 answer
526 views

rsync listing directory with no changes

I have been trying to figure out this rsync behavior, where it still lists directories with different timestamps and the same sizes despite providing a --size-only flag. # lists some directory without ...
Donald Zhu's user avatar
2 votes
0 answers
175 views

Incremental rsync to encrypted APFS USB drive extremely slow

I use rsync to create incremental backups of my backup dir (containing symlinks to all relevant local dirs) to various machines and/or drives: rsync -ivrLtzS --delete-during --progress --link-dest=../...
janeden's user avatar
  • 121
3 votes
1 answer
420 views

Can I use rsync to fix the timestamps that Migration Assistant trashed?

I have discovered the hard way that Apple's "Migration Assistant" doesn't always preserve file timestamps (i.e., created/modified dates in ~/Documents), and I now have a new machine with ...
mrob's user avatar
  • 61
2 votes
0 answers
144 views

When using rsync to sync a sparsebundle are --delete and -X for extended attributes options recommended?

I have scripts that rsync Time Machine sparsebundles to a remote server for offsite backups. I've always assumed that extended attributes are a function of the internal image filesystem and not the ...
1jben794's user avatar
2 votes
1 answer
306 views

Maintain Finder's file lock during rsync?

I'm using rsync to keep two drives in sync. I use the --archive flag which is meant to maintain permissions. However, files which are "locked" in Finder do not show as locked after the rsync ...
brijazz's user avatar
  • 53
1 vote
1 answer
1k views

rsync 2.6.9 crashing on macOS Monterey

On Big Sur I had an rsync command running daily to backup files from a network drive to an external harddrive. I've recently upgraded to Monterey and now it's crashing the mac, even if I just try a ...
franchyze923's user avatar
1 vote
0 answers
210 views

How to schedule and run a cron/launchctl job that will wake computer if asleep

I have a script that performs a backup of my PhD data using rsync. The rsync is performed between my laptop and a home server I have running. The broad idea here is that I normally use my server to ...
fergu's user avatar
  • 121
1 vote
0 answers
102 views

Sparsebundle issues: rsync fails and bash completion shows files that don't exist

The strangest thing is happening right now, so I'm just going to do my best to explain: I have two hosts: a MacBook Pro ("MBPro"), and an iMac ("iMac"), both running Mojave 10.14.6....
caffeinatedbits's user avatar
2 votes
2 answers
2k views

Which files should be excluded in an rsync backup (with macOS Big Sur / version 11.5.1)?

Context: I've been backing up my MacBook Pro with rysnc (now version 3.2.3, protocol version 31) to external hard drives formatted with NTFS. I'd like to continue with this procedure if possible. ...
zeroparallax's user avatar
5 votes
4 answers
2k views

rsync 3.2.3 keeps crashing on Mac mini M1

Trying to use rsync on a Mac mini M1 to backup from an external hard drive(formatted as APFS) to a NAS (shared as smb/cifs). I've tried a number of rsync commands but this was the most recent rsync -...
franchyze923's user avatar
-1 votes
1 answer
549 views

Updating rsync through Homebrew vs updating through .tar download

What are some of the advantages and disadvantages of updating the version of rsync installed using Homebrew vs downloading a .tar file and installing it this way https://hargitai.co.nz/upgrade-rsync-...
whitelightning's user avatar
2 votes
1 answer
3k views

How to disable "ignore ownership" option on an external volume on Mac OS X El Capitan?

I'm using a MacBook Pro 13'' mid-2012 running Mac OS X El Capitan (10.11.6). My problem is similar to https://serverfault.com/a/402216/616473. I use rsync to create backups from my internal drive to ...
Croal's user avatar
  • 43
0 votes
2 answers
209 views

How to delete a backup of /dev/fd?

For extra safety, I recently decided to make a second backup of my Macbook's HD. Initially I did so with rsync, because I was already using Time Machine for my first backup. But then I realized Time ...
msailor's user avatar
  • 223
1 vote
1 answer
218 views

Transfering file and folder permissions to a clean install with rsync?

I'm periodically backing up my Mac user-folder to a remote machine by running rsync with a cron job on my machine. I'm thinking that anything useful will be in the user-folder and I can always ...
oxprox's user avatar
  • 13
1 vote
1 answer
402 views

Problem with rsync in AppleScript

Im facing a problem with AppleScript/Rsync. I try to copy various folders from various drives to one HDD. The following shows a part of the Apple script which is more or less always the same part of ...
8urg33's user avatar
  • 11
0 votes
1 answer
656 views

rsync on macOS Catalina : filename overflows max-path len by 2

I am trying to use rsync to transfer files to a Macbook Pro, like this : rsync -avn --delete /Users/name/ [email protected]:/Users/home_name_from_old/ Unfortunately, I get the following errors on some ...
user avatar
3 votes
3 answers
3k views

Copy home directory from one Mac to another both running macOS Catalina

I have a new 16" and an older 15" MacBook Pros both running macOS Catalina. I want to transfer all my the content in my home directory to the new MacBook Pro while retaining the same ...
user avatar
1 vote
1 answer
512 views

Permissions errors when using launchd to run rsync between local drive and afp network drive

I am trying to sync a local directory to my NAS that is mounted via the afp protocol as a drive. I am using rsync. When I run the command from the terminal, it works fine. However, when I try to run ...
Vaelin's user avatar
  • 121
2 votes
0 answers
246 views

Migration Assistant, rsync, cp and Catalina: How to copy everything in `/Users`

So I just got a brand new 13" MBP and I started with the migration assistant, but it doesn't copy enough from the ~/Library folder. For example, I'm missing my Apple Notes from that machine and ...
Andrew De Andrade's user avatar
4 votes
1 answer
1k views

Rsync keeps copying the same file

I have used rsync for many years between linux filesystems without any problem with a very deterministic behavior. Now I try to use it on mac and experience some problem that some files (a small ...
Mathieu Dutour Sikiric's user avatar
2 votes
0 answers
47 views

How to tell the maximum speed of copying a file using Finder or cp or rsync? [duplicate]

I got a Samsung T7 SSD drive knowing that it can handle 1GB/s read or write, but if I used rsync -a --progress --stats --human-readable file1.m4v /Volumes/T7/file1.m4v to tell the speed of copying a ...
nonopolarity's user avatar
  • 9,598
3 votes
1 answer
841 views

Rsync is terribly slow (0,5MB/S) on Catalina but the same rsync job is much faster (50MB/S) running from a Debian VM on the same mac?

I'm reaching out to you because I'm at my wits end. I've been trying to figure out why using rsync over ssh is so slow on my MacBook (15 inch from 2015). Basically I'm trying to backup my home folder ...
Sn0's user avatar
  • 31
2 votes
3 answers
5k views

Using rsync with path names containing spaces

I am trying to use rsync (on macOS Catalina) but have trouble with spaces in file path names. I have used -s or --protect-args but they do not do anything (when I look at the help for rsync, these ...
chris's user avatar
  • 31
2 votes
0 answers
289 views

problems resulting from launchd script running when computer is sleeping

I have a Bash script that copies a specified set of files/directories to a remote server via rsync. It is run by launchd as a Global Daemon every day at 3am. The computer is sleeping most of the time ...
Daveh0's user avatar
  • 325
1 vote
0 answers
123 views

Automator Run Shell Script - Wrong output

I'm using Rsync for backing up a server. I thought I would make use of Automator to create easy backup-executables. And as the server has large amounts of data I need to split the data across multple ...
Peter's user avatar
  • 11
1 vote
1 answer
365 views

Can't authenticate using SSH key when running script via launchd

I have a Bash script that executes an rsync command to sync files with a remote server. #!/bin/bash rsync -auvzP --exclude=.bundle --exclude=node_modules --exclude=tmp '/Volumes/Norman Data/me/....
Daveh0's user avatar
  • 325
5 votes
2 answers
1k views

How can I back-up an external drive while preserving attributes, folder creation date and showing progress?

Final goal Create a copy of all files one external hard drive to another external hard drive, both formatted as HFS+. Preserve the folder creation date. Preserve finder colour label. During the copy ...
Saaru Lindestøkke's user avatar