Questions tagged [rsync]

Rsync is a fast and extraordinarily versatile file copying tool. It can copy locally, to/from another host over any remote shell, or to/from a remote rsync daemon

Rsync is a fast and extraordinarily versatile file copying tool. It can copy locally, to/from another host over any remote shell, or to/from a remote rsync daemon. It offers a large number of options that control every aspect of its behavior and permit very flexible specification of the set of files to be copied. It is famous for its delta-transfer algorithm, which reduces the amount of data sent over the network by sending only the differences between the source files and the existing files in the destination. Rsync is widely used for backups and mirroring and as an improved copy command for everyday use.

Rsync website

1595 questions
0
votes
1 answer

Sync-rsync keeps appending my localPath (including `Users/LOCAL_USER` folder) to my remotePath

I'm trying to use the sync-rsync VSCode extension to sync my local folder to my remote server. This is my config on VSCode settings.json file: "sync-rsync.onSaveIndividual": true, "sync-rsync.sites": [ "localPath": "/", "remotePath": …
cbdeveloper
  • 101
  • 2
0
votes
1 answer

Disable linux cache memory

Currently i have a server with 4 gb of ram runing 2 rsyncs task (100gb each) every 5 minutes and some monitoring containers, eventually the linux cache eats all ram (rsync faults) and if the monitoring stack launch a new container the system hangs…
0
votes
0 answers

How to rsync files/folder from some days ago?

I would like to run cron job that run rsync command to copy files from 3-4 days ago, I've already try some rsync command like this: rsync -arogzv --ignore-existing --files-from=<(find . -type f,d -mtime +2 ) --exclude={'some_files'} /source…
0
votes
0 answers

Script for automating rsync between two machines (ssh, rsync, mysqldump involved)

I'm trying to create a bash script to automate a process that backups my WordPress blog (on a VPS) on my NAS. I always do it manually, but I'd like to just launch a command and let the thing do its work. What I do usually: On the NAS ssh…
javipas
  • 1,332
  • 3
  • 23
  • 38
0
votes
0 answers

rsync: connection unexpectedly closed

I have a error in rsync after update to use iconv option. I search in everything but not find any solution The command is: rsync -rltPDvhbz -e 'ssh -vvvv' --progress --iconv=utf-8-mac,utf-8 --exclude={'.Spotlight*', '.TemporaryItems', '.Trashes'}…
David Souza
  • 101
  • 1
0
votes
1 answer

Slow rsync from Linux to Windows

I backup files using rsync from RHEL Linux to Windows 10 Pro using SMB/CIFS share. It works fine except it is much slower than Linux to Linux. Both computers are fairly modern Dell OptiPlex, having 6-core CPUs, 16GB memory, NVMe disks, 1 GigE NICs.…
0
votes
2 answers

How to have rsync split files into smaller bits and combine them upon finishing?

I have finicky home internet, rsync might get disconnected anytime and my large files will have to restart from the beginning. Is there a way, to split per say a one GB file into 50MB increments, send them over to the destination and then combine…
user760466
0
votes
0 answers

Backing up files to external drive with rsync

So my scenario is that I have been using rsync to backup files from an internal drive to an external USB drive. The backup is only about 50% done and I want to backup the remaining files to a second, larger drive and then add the files from the…
Jason O
  • 159
  • 1
  • 2
  • 8
0
votes
1 answer

Powershell Cygwin copy data with Rsync remote as variable

I have a problem with Cygwine's rsync. With a Powershell script I am trying to transfer directories from a Novell server to a Windows server The path for the source is a variable that comes from a CSV file Function CopyRsync…
akli
  • 1
  • 2
0
votes
1 answer

SSH access to remote 'dynamic' directory

short version I'd like to synchronize a remote directory, whose name changes. Something like (not working!): rsync -a 'test@192.168.56.100:~/.zfs/snashots/$(ls -d Automatic-* | tail -1)/foo' ~/foo longer version / background I have an internet…
0
votes
2 answers

rsync a directory with its own descendant

tl;dr: I want to rsync a directory to its own descendant, and then rsync the said descendant back to the original directory--including deletions and exclusions in both directions. Before you ask the obvious question, "Why would you want to do that?"…
TravisCarden
  • 101
  • 3
0
votes
0 answers

Sync a directory between two shared hosting servers using rsync

I have two shared hosting servers and I need to sync a directory with subfiles/directories using rsync via SSH automatically. Mean: If server1 had changed server2 updates the changes. If server2 had changed server1 updates the changes. I can use…
0
votes
1 answer

Rsync: "chown failed: permission denied (13)"

I run a rsync task every midnight using the following command: rsync -ahzP --stats --update --delete-before --delete-excluded --exclude "*.log" --exclude temp /mnt/raid/ /mnt/backups > /root/ext_backup.log 2>&1 /mnt/backups is a NFS mount. The…
alex3025
  • 27
  • 2
  • 9
0
votes
1 answer

rsync optimization over --link-dest "referenceBackup"?

Context: I am successfully using rsync to create daily incremental and remote backups using the --link-dest "referenceBackup" flag, so that when creating the new backup, only a new reference is created to an existing and unmodified file. problem:…
earizon
  • 141
  • 3
0
votes
2 answers

Rsync always failing at the same point

I made a script for my Proxmox host to copy its daily backups to another machine (running Windows Server 2019). The script mounts a CIFS share and runs this rsync command: rsync -aqzP --delete --delete-excluded /mnt/raid/ /mnt/backups --exclude…
alex3025
  • 27
  • 2
  • 9
1 2 3
99
100