Questions tagged [rsync]

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

Filter by
Sorted by
Tagged with
1 vote
0 answers
261 views

mount encrypted remote folder (Ubuntu 18.04 LTS)

I wish to mount an encrypted remote folder on my computer running Ubuntu Server. My remote folder is in a device behind a router. My aim is to do rsync from my computer to that folder. How can I mount ...
JDias's user avatar
  • 33
1 vote
0 answers
47 views

Rsync became slow from one specific router

I have an ubuntu server. Up until about a week ago, I could rsync to it with an upspeed of 18-22 mb/s. Now, however, I get about 30kb/s. I have tested multiple machines, and they all exhibit this ...
Corbin's user avatar
  • 11
2 votes
1 answer
1k views

Synchronising Ubuntu 20.04 across multiple machines

I'm aware that this is not the first time this is asked but I have not been able to find an answer that was younger than 5 years and still up to date. Currently, I have Ubuntu 20.04 on my Desktop at ...
3ng7n33r's user avatar
0 votes
1 answer
237 views

rsync not copying according to --include flag

I have dir: - /tmp/test1/ -- 1.txt -- 2.cert I have another empty dir named /tmp/test2 sudo rsync -av --relative --include="*.txt" --exclude="*" --delete-before --chmod=D2775,F664 ...
O. San's user avatar
  • 103
0 votes
1 answer
5k views

How to make rsync delete files in the destination folder that has been deleted in the source with shell glob?

I'm trying to collect files periodically from multiple sources into a single file dest. To save copies I tried using rsync but I have a bit of a trouble. Let's say I want to copy some files from ...
O. San's user avatar
  • 103
1 vote
1 answer
1k views

How can I analize why rsync copies very slow after copying very fast a few files on ntfs drives?

I'm backing around 2Tb of data from a ntfs disk to another ntfs disk with rsync ( I tried also with midnight commander ) and the copy starts with a "good" 25Mb/s speed, but after copying a ...
Fabman's user avatar
  • 113
0 votes
0 answers
409 views

Sysvolcheck returns error on backup DC upon each replication

I have two DCs in my Samba AD with sysvol replication via rsync set up to run every 5 minutes. On the PDC, samba-tool ntacl sysvolcheck returns no errors. On the BDC, samba-tool ntacl sysvolcheck ...
bedanizer's user avatar
0 votes
1 answer
1k views

How to rsync that excludes .git/ folder but still keep the .git/config file?

In brief TLDR To rsync a folder that has .git/ excluded but still keeping the .git/config file, how to do that? My google search is not helpful so I asked here. Full details I want to take snapshot of ...
Nam G VU's user avatar
  • 2,268
2 votes
1 answer
5k views

unable to install liblz4-dev

On Ubunbtu 20.04 I'm trying to install rsync, for that I need to install the liblz4-dev package. When I try with: sudo apt install -y libzlz4-dev I get: E: Unable to locate package libzlz4-dev So I ...
Cadmusgoat's user avatar
1 vote
1 answer
160 views

How can I exclude .* directories from rsync but include the .vnc directory?

It seems that a combination of --exclude '.*' and --include '.vnc' does not work: rsync -vvrR --recursive --exclude Downloads --exclude '.*' --include '.vnc/' "pi@$host:{/home/pi,/etc/systemd/...
monok's user avatar
  • 113
1 vote
0 answers
348 views

How to specify remote Windows path to synchronise with Linux local machine using "rsync"

I have a local Ubuntu computer and a remote Windows computer. I need to sync folders on above two systems from Ubuntu command line (Terminal) using rsync I‌ have ssh and rsync installed on my Ubuntu ...
PHP Learner's user avatar
  • 2,788
0 votes
0 answers
135 views

rsync troubles: not ignoring directories as expected

I know rsync has a man page, but yet is quite hard to digest (I've tried it). So I came up with this command to sync my data to /Backup in an external drive: sudo rsync -aAXv --delete --exclude={'/...
mister nobody's user avatar
1 vote
1 answer
2k views

Copy folder to another location by excluding all sub folders that have a specific name

I need to backup my devprojects folder, but it contains a subfolder for every project, and most of the projects have a node_modules folder that has many many files. This causes my backups to be ...
Etika49's user avatar
  • 113
0 votes
1 answer
2k views

How to periodically and automatically backup my system files in Ubuntu 18.04 with ZFS on root?

I would like to have a script that periodically and automatically backs up select system files to my NAS, which I have in my fstab to cifs mounts on boot. Based on the responses from Which Folders To ...
guttermonk's user avatar
1 vote
0 answers
3k views

Why do rsync processes keep running even after killed by Ctrl-C?

I am running a rsync process to sync my files to a remote location. The I/O loads are pretty high, mostly in accessing the remote location. The local location is the machine disk. I killed the rsync ...
Masroor's user avatar
  • 3,143
0 votes
1 answer
470 views

Cannot remove "empty directories" from my external hard drive after rsync fail

It seems like I have 4 empty directories on my external hard drive (NTFS). But I can't remove them with nautilus or a terminal. I think this happened just after my attempt to synchronize 2 directories ...
Zatigem's user avatar
  • 478
1 vote
2 answers
590 views

Ubuntu 20.0.4 failing to boot after restore

I recently swapped out my hard drive and used rsync to restore files from my previous hard drive after reinstalling the OS. The install was successful but after running rsync to restore the files, I'm ...
whileINside's user avatar
0 votes
0 answers
204 views

Syncing documents between Ubuntu, Windows, external drive

I have been trying to set up a backup system which keeps my document files (Word docs, photos, music, videos, etc.) synced on my Windows and Ubuntu systems. You'd think it was easy, but I keep having ...
pulck's user avatar
  • 11
1 vote
0 answers
68 views

rsync changes directory name

I just discovered rsync to sync my important files to an external storage. I used this command: rsync -zavh /path/to/mylocaldirectory/ root:10.10.10.10/path/to/myexternalstorage So far everything ...
t0v4's user avatar
  • 11
0 votes
1 answer
232 views

Automate backups rsync + snapshot and archives rotation

I'm looking for a command line solution to automate backups of system files from my server Ubuntu installation with Rsync and take snapshots of them to a remote location (home NAS). Ideally with a ...
Sandra's user avatar
  • 101
0 votes
0 answers
101 views

Merging multiple directories into one

I have a below folder structure: ->fol1 ->file1 ->file2 ->fol2 ->file2 ->file3 ->fol3 ->fol1 ->fol4 What I want is that I should be able to merge these 3 ...
Vipul Tyagi's user avatar
0 votes
2 answers
2k views

Error when trying to SSH into server using a WSL

I need to obtain data from a server, using my WSL (Ubuntu 20.04) and to do so I run the command rsync -av -e "ssh -vvv -oPort=5822" 'address' where 'address' is of course replaced with the actual ...
DatLemonDoe's user avatar
0 votes
0 answers
177 views

How to mount server to other computers?

Any idea what's the best way to set up my server for file sharing and backup? I have to tower PCs now. My main computer has Ubuntu 20.04 installed. As well as multiple boot drives with Windows 10 (...
Zerafiall's user avatar
0 votes
1 answer
1k views

rsync is filling up my root folder

I have been using rsync to back up my home folder to another internal disk drive. The backups appear to be working fine. The files and folder structure are being reproduced accurately on the backup ...
Phill M's user avatar
  • 13
1 vote
1 answer
950 views

rsync appears to copy files to Android device, but no files are actually copied

I've attached my Android device with a USB cable to my computer and set its USB mode to data transfer. I am trying to keep my music directory on my MicroSD on my Android device in sync with my ...
user19642323's user avatar
0 votes
0 answers
71 views

rsync two remote servers causing local servers disk to fill

I am currently syncing from two remote servers using: rsync -a remote1 remote2 The problem I have is remote1 connection is better than remote2 so files seem to be downloading and storing locally ...
Toodarday's user avatar
  • 353
1 vote
0 answers
569 views

Bare metal backup

I'm renting out some bare metal machines and am finally starting to automate the process of provisioning. The idea is to setup a few bare metal machines and manage them via MAAS. I would like to ...
goose's user avatar
  • 11
1 vote
1 answer
312 views

How safe is this remote rsync setup?

I'm thinking about security, I've done a specific setup to run rsync over internet and was thinking about security, this is the setup: Destination server has an SSH jail user only with bash and rsync,...
Syntaxy's user avatar
  • 21
0 votes
1 answer
698 views

rsync won't exclude folders passed as a variable in a script

I'm trying to pass a variable to exclude several folders from a rsync operation in a script, as follows: echo "Type the path of the folders to exclude: " while read folder do folders=("${folders[@...
thiggy01's user avatar
  • 431
2 votes
1 answer
1k views

A udev rule for automatically executing rsync scrips is not working

I have written the following udev rule /lib/udev/rules.d/99-Goprobackup.rules # when device /dev/sd* is added to the KERNEL with the UUID defined RUN the script ACTION=="add", ...
Seb Thomas's user avatar
2 votes
0 answers
618 views

Back In Time (BIT) Restore Fails on 20.04 with rsync error

I just installed the current Xubuntu 20.04 and tried to restore my backup from my backintime backup via sshfs. Unfortunately, this failed. I checked the full log in /home/user/.local/share/backintime/...
JJ Abrams's user avatar
  • 275
1 vote
0 answers
94 views

Move files from external HDD to new internal HDD while keeping external HDD as backup (rsync)

I currently have all my Movies and TV Series (around 2.5TB of data) stored in external HDDs. Recently I bought a new internal HDD for my home server and I wanted to copy all my files there. Up to this ...
Leonardo's user avatar
0 votes
1 answer
2k views

Timeshift setup: what is the result of the different `/root` options?

This is related to a similar question I have posted, but this is different: I just wonder what are the different options for /root doing. My intention is to save my system with all programs and ...
cipricus's user avatar
  • 3,426
4 votes
1 answer
2k views

Timeshift setup: how to backup system with programs and all theirs configs, but without Video, Music etc?

I only make rare snapshots on an external drive (RSYNC option). I would like to backup all my programs with all their configuration settings as I have them now, but when I restore my system all ...
cipricus's user avatar
  • 3,426
0 votes
2 answers
1k views

rsync re-syncing files each time

I'm trying to sync the Music folder from my computer with lubuntu 19.10 to my Pixel 2's Music folder via USB. I'm able to mount the device using jmtpfs to a Folder called "Celular". Then what I want ...
fernando herrera's user avatar
1 vote
0 answers
28 views

Create a progressbar for the next commands [duplicate]

I am developing backup script on linux (using bash linux [.sh]), and I need create a dialog (with command dialog) with progress bar to show to client status of the commands. For example, I want a ...
Originers Mc's user avatar
1 vote
0 answers
225 views

Restoring permissions from rsync backup

I am new to Linux. I started using Ubuntu 18.04.4 a few weeks ago – a refugee from the land of Windows 7 – so please pardon the newbie question. I have managed to get to grips with rsync somewhat ...
Phill M's user avatar
  • 13
0 votes
1 answer
525 views

rsync filled up dev/nvme0n1p2: how do I reverse this?

I'm new to looking after a linux computer. I'm runnning Ubuntu 18.04.04 LTS. I wanted to make a backup on an external harddrive using rsync. Unfortunately the name of the hard drive was two words and ...
Alastair Skeffington's user avatar
1 vote
1 answer
4k views

Using rsync to back up /home folder with same permissions, recursive

I would like to request information on using rsync. I tried reading reading the manuals, but the examples are few and confusing for me. I do not need advanced features or live sync or remote sources ...
Jonathan Joseph Chiarella's user avatar
1 vote
0 answers
206 views

Best way to migrate old Ubuntu Server?

I need to get Ubuntu 8.04 Server(running on XenServer by hosting service) to Hyper-V(Onpremise, hosted by us) this weekend. I was planning to follow this guide. But should I first install Ubuntu 8.04 ...
Othou's user avatar
  • 11
4 votes
1 answer
13k views

Error: bad username; while reading /etc/crontab

I want to copy files from a server to an NFS that I've mounted on the server. To do this I configured a crontab to copy these files to the NFS. By typing the command manually the files were copied ...
sef ayoub's user avatar
2 votes
0 answers
1k views

How to make rsync --fake-super store owner and group as string in the extended attributes?

I am running a server on Ubuntu server 18.04. I want to write scripts to easily backup and restore my programs and data individually to/from a different system. Say I have an application with its ...
intbes's user avatar
  • 21
1 vote
0 answers
238 views

grsync does not reproduce quotation marks in rsync command, so never asks for password

When running grsync to transfer local files to a remote server, the program simply sits there doing nothing. Unfortunately it never asks me for the remote system password. OS is Ubuntu 18.04.4 LTS. ...
dw861's user avatar
  • 41
0 votes
0 answers
114 views

Mountpoint of Online Accounts

I have added a google drive and a nextcloud online account to my Ubuntu 19.10. I want to auto sync some stuff with rsync, but I cant figure out where the folders of the online accounts are mounted.
TMaddox's user avatar
  • 21
0 votes
0 answers
359 views

Slow disk speed with rsync, but not in benchmark or with other disks

I have some problems with my self builded multimediabox. I have 4HDDs in it to store music, movies and backups from computers from the network. I got all backups on one buffer disk (Seagate 8TB ...
Knight989's user avatar
2 votes
3 answers
410 views

How to copy 12GB file from Ubuntu 19.10 to Android if My RAM size is 8GB

I tried different options to copy a 12GB movie from Ubuntu to Android (connected as a Camera for reliable connection, with mtp situation even worse), but surprisingly for me there is a RAM+SWAP ...
Shalguev's user avatar
0 votes
1 answer
251 views

How to create a personal failover laptop?

This question sounds a tad vague but I'll lay it out rather clearly with some requirements: Each laptop should contain the same files in the home folder. User accounts should be identical. ...
Tmanok's user avatar
  • 231
5 votes
1 answer
2k views

18.04.4 Delete a file on shutdown

I'd like to delete a lock file if I reboot or shutdown my Ubuntu 18.04.4. I created "usr/local/sbin/delete_lock.sh" with #!/bin/bash lock="/home/sebastien/rsync.lock" if [ -f "$lock" ]; rm $lock; fi ...
Sébastien Serre's user avatar
1 vote
0 answers
3k views

Rsync error code 23

I am trying to back up a server into a flashdrive with rsync: rsync -rv --delete /home/computername/filename /dev/disk/by-label/Flashdrivename It fails, with: sending incremental file list ...
Sbeisse's user avatar
  • 11
1 vote
1 answer
1k views

Copy only directories and its contents while excluding outside files using rsync?

Let's say I have this file structure: dir1 dir2 dir3 1.jpg 2.jpg 3.jpg Is there any way for me to rsync the directories and its contents while excluding the files outside the directories(1.jpg, 2....
itpug's user avatar
  • 13

1 2 3
4
5
16