Skip to main content
Share Your Experience: Take the 2024 Developer Survey

Questions tagged [rsync]

a utility used to synchronise files between locations (possibly over a network)

Filter by
Sorted by
Tagged with
0 votes
0 answers
28 views

NVMe gen4 disks running slow in real world usage (rsync)

We have big difference between FIO tests and "real" speed via rsync for example. We are facing this problem on U.2 gen4 and M.2 gen4 + adapter as well. Totally same results for both. U.2 is ...
Dominik Shaim's user avatar
2 votes
1 answer
50 views

Adding error handling to simple backup script

I have created the following simple backup script for my Ubuntu machine: #!/bin/bash set -e echo "Mounting network share" sudo mkdir -p /var/backup sudo mount -t nfs 192.168.178.33:/...
Boris's user avatar
  • 121
0 votes
0 answers
23 views

Create a recycle bin in Ubuntu (openmediavault)

I want to create a folder (/recycle), in which only deleted files from the folder (/folder1) will remain. Is it possible to first create a backup of the folder (/folder1) with rsync, and then delete ...
  dmitolex's user avatar
0 votes
0 answers
221 views

Copying files (cp and rsync) from rom MacOS formatted exFat sytematically crashes entire system (Ubuntu LTS 24.04)

I am in the process of switching from MacOS (MacBook Pro, Retina, 15-inch, Mid 2015, 16GB RAM) to Linux. I installed Ubuntu 24.04 LTS about 10 days ago. Copying files (using both rsync and cp) from ...
ecjb's user avatar
  • 117
2 votes
1 answer
178 views

Testing Ubuntu beta

I want to start testing Ubuntu beta, but I don't want to download a new iso every time so I am using rsync. How do I use it to sync my local copy of the ubuntu iso with the ubdated on on the server. ...
Todd's user avatar
  • 39
0 votes
0 answers
41 views

Rsync Compare-Dest Not Recognizing Wildcard

I am trying to use rysnc to do multi level incremental backup, however I am running into some issues. It seems as though rsync does not recognize wild cards in compare-dest. I run the following code ...
Jam's user avatar
  • 1
0 votes
0 answers
46 views

How do I restore deleted files from rsync?

I used the following command rsync -avh --progress --remove-source-files --delete /mnt/disk-1/* /mnt/disk-2 I thought that delete would overwrite files in my destination directory. But instead, it ...
Marios T.'s user avatar
0 votes
0 answers
24 views

How to move an Ubuntu LAMP server VM from a Xen orchestra host to a hyper-V host

I have no credentials to access the Ubuntu LAMP server except via cPanel which has terminal access and wish to move this Ubuntu LAMP VM from a Xen Orchestra Host to a Hyper-V host. I was thinking of ...
Brad Joyce's user avatar
1 vote
1 answer
39 views

How to submit the folder contents by Rsync with SSL keys protected by the passphrase?

After has been recommended to stop to use Git for deploying to VPS, I have returned to Rsync method. Unfortunatly Rsync is very unfrendly, emits the unclear errors and sometime the error message does ...
Tokugawa Takeshi YD's user avatar
1 vote
1 answer
57 views

Using rsync, how to exclude a specific hidden directory and all subdirs from transfer

I'm trying to rsync some data and exclude a directory called ".snapshots". So the path to the source is something like: /a/b/theDirectory/ and it has within it: /a/b/theDirectory/.snapshots/...
aghsmith's user avatar
  • 113
1 vote
0 answers
55 views

difference in file tranfer speed due to difference in file features?

I'm using Try Ubuntu on a USB drive to use Ubuntu 22.04.4 LTS. This way I'm copying files from an external disc in Ext4 file system to an internal disc in NTFS file system. I have two folders (folder1 ...
ssr's user avatar
  • 11
0 votes
1 answer
88 views

Can I safely delete .~lock... files for Libreoffice documents that I know are now closed?

I have a situation where a .~lock file exists on my laptop when I know the file was closed. Here's how: On my desktop, I edit a Libreoffice Writer file. Once I've finished, I sync the folder (using ...
Will's user avatar
  • 2,321
0 votes
0 answers
32 views

File caching creates problems when big folders are transferred

All the systems that experience problems during big folder transfers are running Xubuntu 22.04.4. One is using Kernel 6.5.0-26-generic and is equipped with 16 GB of RAM and two are using Kernel 5.15.0-...
Stormlord's user avatar
  • 6,443
1 vote
0 answers
317 views

Rsync over SFTP alternatives?

I am currently working with an SFTP server and aiming to synchronize its folder with a corresponding local directory. It's crucial to note that I lack control over the SFTP server, and files within it ...
Eddy's user avatar
  • 11
0 votes
1 answer
222 views

Using rsync with sudo

I want rsync with sudo. 1 I try solution from this topic: huser@linux:~$ rsync -avz --stats --rsync-path="echo 4321 | sudo -Sv && sudo rsync" /home/huser/mylibs/ [email protected]:/...
Андрей Тернити's user avatar
0 votes
0 answers
58 views

Why do cp, and nocache cp, clog up and slow down/freeze after 2-4 TB, but rsync is effective indefinitely?

Is there a setting I'm missing in CP and nocache CP that frees up resources after each file? I looked around, and read that cp and nocache cp are MUCH faster, and use more RAM instead of CPU, but not ...
Kmaws's user avatar
  • 1
2 votes
1 answer
170 views

rsync not copying files when using --include flag

I have the following files: 1/2/abc.txt 1/2/def.txt 1/1/abc.txt 2/1/abc.txt 2/2/def.txt 3/1/hij.txt I'd like to copy all abc.txt files and preserve the directory tree. I tried the following command: ...
maia's user avatar
  • 23
0 votes
2 answers
243 views

rsync --dry-run paged output - how to achieve?

I am syncing two large folders from local pc to remote server and the output from the --dry-run is several pages long, too long for terminal reading. What is the syntax to add the directive >>...
makem's user avatar
  • 111
0 votes
0 answers
38 views

Backup of filetype to remote system

All i want to do, is to recursively copy all files of one type, let's say *.txt files, into one directory at a remote system, that i can reach with password less ssh. I tried rsync in particular but ...
Ulsi's user avatar
  • 62
0 votes
0 answers
43 views

Timeshift keeps including a folder which is in the exclude list

I'm using Timeshift and I have included my home folder but excluded a particular sub folder. I have rm- rf'd the Timeshift folder on my second drive. However, every time I click Create, Timeshift ...
intrigued_66's user avatar
0 votes
0 answers
84 views

Can rsync backup on ext4 USB be as good as system image?

With I have an Ubuntu 22.04.3 LTS desktop with Ubuntu Pro Lenovo Thinkpad T460 and a program that backs up and restores all timestamps and group and owner, would a backup with rsync with maximum ...
maybeJosiah's user avatar
0 votes
0 answers
45 views

rsync error when source is a mounted internal SSD

I am having an issue with my rscyn script where the issue may be related to the source being a mount point from fstab. fstab mounts an internal SSD via UUID. Here is a snipit from the code, and if ...
Lost_Ones's user avatar
1 vote
1 answer
81 views

Dolphin context menu exec command, cp will duplicate selected folder if already copied

So I'm trying to automate some tasks and I'm making some dolphin ServiceMenus. Exec=for file in %f; do new_path=$(echo "$file" | sed "s|^/home/$(whoami)||"); mkdir -p ~/Dropbox/....
mioufts's user avatar
  • 11
1 vote
1 answer
261 views

rsync remote paths with spaces and autocompletion is not working

Running Ubuntu 22.04 I have a remote server that I can connect to with ssh. ssh remote So I can copy a file with rsync: rsync remote:text.txt . rsync will autocomplete tex to test.txt when I press ...
Janghou's user avatar
  • 5,759
0 votes
1 answer
60 views

Backups are crashing Computer or Filling Home Directory

I am trying to setup a back up solution for my Linux computer: Ryzen 3950X, 64 Gb RAM, RTX 4070ti, 2Tb boot, 2 + 4 Tb internal drives. I tried "Backup" but it was filling up RAM (64 Gb), ...
DrIgnatiusCole's user avatar
0 votes
1 answer
1k views

Is there a method to have rsync write only errors to a log file?

I have a situation where I need to (almost)completely copy my Ubuntu HD to an external HD. The biggest problem I and encountering is that there are an extremely large number of files that won't copy ...
Bartender1382's user avatar
0 votes
0 answers
99 views

Rsync from Ubuntu to Synology fails when created as task

I have a Synology which is used as a backup system for my Ubuntu server. I've created a script where my Synology will rsync via ssh from my Ubuntu Server to itself. rsync -avrhv --no-o --no-g --no-...
Raf's user avatar
  • 1
1 vote
1 answer
373 views

use rsync to back up operating system for ubuntu server

I'm trying to implement a good back up strategy for my ubuntu server operating system. I have multiple harddrives on my server. So my plan is to use rsync to copy everything but my user data to ...
user3476463's user avatar
0 votes
0 answers
65 views

How to transfer very large folders from a server which I access sudo and ssh to another server with ftp access?

I have some big folders (each around 1T) on a server which I have sudo access to that. I want to transfer them to another server which I have ftp access (with username and password). What it came in ...
Nmgh's user avatar
  • 1
-2 votes
1 answer
73 views

read only file system error on boot up after virtual box error

I have an ubuntu server. Earlier this week I noticed I couldn't ssh in to the server remotely. So I connected directly to the server, but I couldn't get prompt to come up it just continued to scroll ...
user3476463's user avatar
0 votes
0 answers
52 views

GlusterFS help on setting up or a alternative option

I currently have a mergerFS mount set up with 3 disks, but want to add a way for another server so i can use docker swarm and have both hosts with the same data and setup. All I could find was rsync ...
user2029325's user avatar
0 votes
0 answers
44 views

Startup rsync backup don't work anymore

looks like this don´t work anymore... mount | awk '{if ($3 == "/media/NAS") { exit 0}} ENDFILE {exit -1}' && rsync -r -t -v --progress --delete -s /media/NAS /home/alebal/Desktop/...
alebal's user avatar
  • 463
1 vote
1 answer
555 views

Rsync from remote Ubuntu server to WSL on Win11 fails with "unexplained error (code 255)" after exactly 90 seconds

Okay, so I have a small minecraft server in my basement running Ubuntu Server 22.04.3 LTS (GNU/Linux 5.15.0-87-generic x86_64) I have a Windows 11 machine upstairs with WSL installed. Everything is ...
MALON's user avatar
  • 155
0 votes
0 answers
7k views

How to resolve grub-probe error: disk lvmid/xxx not found

I encounter an error stating "lvmid not found" when running the grub-probe command. # grub-probe --target=fs_uuid / grub-probe: error: disk `lvmid/R9xUrf-ONd8-wCXx-qfxt-m5Ox-JwKG-LrcAZI/...
teityura's user avatar
0 votes
0 answers
635 views

Rsync Local to Remote - Stating both source and destination are remote

I am trying to use rsync to transfer files from my local windows machine to a remote ubuntu machine. I have searched online and have had no dice. When I try to run the command, rsync tells me that the ...
Connor Davidson's user avatar
0 votes
0 answers
26 views

rsync'd directories not equal

I run "rsync -av /src /tgt" and afterwards, to check if source and target are identical, i run "tar -cf - dir | md5sum" (where dir is either "src" or "tgt") in ...
Ulsi's user avatar
  • 62
0 votes
0 answers
44 views

Grsync does not finish transfer (stuck)

A directory with files is to be moved to a NAS. For some reason it becomes stuck in the sense that the upper progress bar indicates 100%, though global progress remains at 90%: I removed .lnk ...
gatorback's user avatar
  • 5,925
0 votes
0 answers
289 views

File transfer speed over local network (WLAN) suddenly drops after while (Ubuntu 22.04)

I'm trying to back up multiple files (around 1000 of them, 40 GB all) over WLAN from one computer to another. Both computers run on Ubuntu 22.04. I've tried multiple ways of copying files. Sharing ...
Adrian Bienias's user avatar
1 vote
0 answers
86 views

rsync does not include some files

In order not to carry all the hidden home folders in the backup, I excluded '.*' in the exclusion file. But now there are some files, which are inside some subdirectories of the hidden directories, ...
CaneRandagio's user avatar
0 votes
1 answer
50 views

I want to rsync a folder from local ubuntu harddrive to raspberry external harddrive

I want to rsync a folder from local ubuntu harddrive to raspberry external harddrive. Problem is finding the right path. When i search in ubuntu file explorer i can open the folder on the raspberry ...
E Tobe's user avatar
  • 1
0 votes
0 answers
330 views

unable to use rsync into a usb drive

I have this rsync command: rsync -auv -delete /home/user/mc-server-files /home/user/sandisk-usb/mc-server-files >> /home/user/mylogs/school-server-backup.log 2>&1 I also have it in ...
spirledaxis's user avatar
0 votes
2 answers
2k views

Timeshift GUI not showing snapshots

I use Ubuntu 22.04. I've been trying to create snapshots on my internal disk. Even though the snapshots are created, they are not shown in the GUI. I've tried formatting the disk and reinstalling ...
Esteban V's user avatar
0 votes
0 answers
272 views

rsync creating duplicate files

rsync is creating duplicate files on destination and renaming them. Filename.txt gets added again as Filename(1).txt rsync -avP --ignore-existing /source/ /destination/ Anyone have an idea what is ...
user14282086's user avatar
0 votes
0 answers
890 views

Permission denied (13) with rsync command

I am trying to make a script that will eventually go into crontab to execute every once in a while. I want to backup a directory from my HDD to my usb drive. Here is the script: SOURCE_DIR="/...
spirledaxis's user avatar
2 votes
2 answers
746 views

How can I have an rsync backup script do the backup only when the external drive is mounted?

I have an external SSD. Sometimes it's plugged in, sometimes not. I've gotten past the FSTAB issues of hanging on boot - all is good there. I have a script that uses RSYNC to back up my home drive ...
The_Chris's user avatar
0 votes
0 answers
63 views

count files and folders with diff and dolphin

I used rsync to make a backup of home folder excluding .* folders rsync -avz --exclude '.*' /home/andrea/ /media/andrea/maxtor-Est1000/ I checked with dolphin and diff to see if everything from the ...
CaneRandagio's user avatar
0 votes
0 answers
743 views

How to use rsync to backup local folders to an external hard drive with hard links for unchanged files

I have two folders in my home directory that I need to backup to an external hard drive. Each folder has some files that should be excluded from the backup, and I have a file named "backup-...
Xayden Rosario's user avatar
0 votes
0 answers
94 views

Rsync ssh dest folder bigger than source folder

I want to do a backup of all my files from my linux computer to a ssh server. I used rsync with : rsync -rl source dest But now the dest folder (which was empty before) is larger than the source. ...
Quentin Chartreux's user avatar
0 votes
0 answers
45 views

Can't run my scripts shell of my app after doing a rsync of data from Ubuntu server 18.04.5 LTS to another Ubuntu server 22.04.2?

enter image description hereI did an rsync of those filesystems /home/ /opt/ /my_application/ /srv/ Did I forget to copy something else (...?), or is it a problem in version of Ubuntu ? I need to run ...
laila B's user avatar
0 votes
1 answer
164 views

What is the correct way to not be using the home directory during a backup of it?

So I obviously shouldn't just run rsync backing up /home while I'm plainly logged in, as the state of settings files could be inconsistent or whatever else, since /home is being used. One solution is ...
Tachytaenius's user avatar

1
2 3 4 5
16