Questions tagged [rsync]
a utility used to synchronise files between locations (possibly over a network)
778
questions
1
vote
1
answer
2k
views
scp works fine, but rsync does not
Trying to pull some mkv files from my raspberry-pi, but rsync doesn't seem to work, while the same remote path works fine with scp. Can anyone tell me what is wrong?
rsync
vinicius@Inspiron-5537:/...
1
vote
1
answer
960
views
how to sync files in linux - command prompt?
I see the following files in my directory -
-rw-rw-r-- 1 sjos sjos 401 Oct 12 15:29 Makefile
-rw-rw-r-- 1 sjos sjos 401 Oct 12 15:29 Makefile~
-rw-rw-r-- 1 sjos sjos 336 Oct 12 15:12 ...
1
vote
2
answers
1k
views
Migrating the / volume?
After a hardware failure of the motherboard and subsequently a few disks, I am migrating the root partition over to another drive. However, given /dev and other peculiar locations I was wondering ...
1
vote
1
answer
931
views
Rsync between 2 servers with different OS versions
I is it possible to Rsync data between two servers running Ubuntu 10.04.4 LTS and Ubuntu 10.04 LTS? Or they have to be of the exact operating system like Ubuntu 10.04 LTS for both of them.
1
vote
1
answer
3k
views
How to exclude files like 'unitydashlegalseen' from syncing in Grsync?
I have been backing up my home folder with Grsync for several years now. With the introduction of the legal confirmation in the Unity Dash (12.10) I am getting a file called 'unitydashlegalseen' in '/...
1
vote
1
answer
208
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 ...
1
vote
1
answer
1k
views
Get pCloud to backup hidden files
I've got the pCloud app for backups, but it excludes all hidden files, some of which, like my key chain, I really want to make sure are backed up.
Can I do this with the GUI app? If not, can I use ...
1
vote
1
answer
1k
views
After upgrade from Ubuntu 20 to Ubuntu 22, rsync copies unchanged files and changes modified time to current time
Upgraded from Ubuntu 20.04 to Ubuntu 22.04 using un-requested prompt from Ubuntu to do the upgrade.
I had been running rsync in a Unix shell script from local pc to locally mounted Samba share on a ...
1
vote
1
answer
509
views
rsync refuses to exclude directory
I'm trying to make a OS backup with rsync and have put this into crontab. which by itself works great, but for some reason it refuses to take /export into account while looking at the excludes...
0 2 *...
1
vote
2
answers
842
views
rsync with --delete-before except if source empty
I back up a hard drive with an rsync --delete-before cron job. The problem is that if the source drive fails then rsync sees it as empty and everything is deleted from the backup - exactly what you ...
1
vote
1
answer
164
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/...
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 ...
1
vote
1
answer
807
views
Ubuntu 18.04 and Timeshift - what happens if I reboot while timeshift is taking a snapshot
I have Timeshift scheduled to take a snapshot at regular intervals using rsync. What happens if I reboot during snapshot, will the incomplete snapshot be corrupt, will it be deleted, will it re-...
1
vote
1
answer
1k
views
How to continuously sync a folder between two Ubuntu servers?
I have two servers which are going to host two instances of a load-balanced app. Users can upload photos to /photos folder on either of the servers.
So the question is how to sync the two servers so ...
1
vote
1
answer
70
views
rsync commands automation [duplicate]
I want to automate multiple rsync commands like below:
Execute rsync1
Display output of rsync1 in the terminal
Ask confirmation if want to continue rsync2
Execute rsync2
Can someone help?
1
vote
1
answer
2k
views
How can I limit page cache/buffer size
My problem is this: My laptop has a relatively slow disk subsystem (amd I'm not going to buy a better one) and I backup my system using rsync which works well for me. However, during the backup ...
1
vote
2
answers
654
views
Automate backups creation from multiple locations, structure them by date, mantain local and cloud incremental backups [closed]
I have my app on a VPS(Ubuntu Server 18.04), and the host can do weekly backups of all the system.
But this is not enough, so I want to do my own backups(besides I had hosts backup files failing in ...
1
vote
1
answer
2k
views
Transferring terabytes of data between two machines efficiently (samba and NFS mounts)
I need to transfer 15 TB of data from one machine to another machine and having failed several times during the past three weeks, I am out of options and do not know what to do.
There are two ...
1
vote
1
answer
223
views
Differences between /media/Home and /home
I am using Ubuntu 18.04 and I just made a seperate home partition labeled Home and copied the contents over with rsync:
sudo rsync -aXS --progress --exclude='/*/.gvfs' /home/. /media/Home/.
Then ...
1
vote
2
answers
3k
views
excluding hidden files only in a particular directory
I’m trying to synchronise my home folder with a usb disk.
I would like to ignore the hidden files and directory in my home folder but only in this directory, I still need to synchronise the hidden ...
1
vote
1
answer
18k
views
rsync error: syntax or usage error [closed]
I am trying to copy local system folder files to remote server. tried below command in ssh using putty :
rsync -avz -e 'ssh' C:\wamp64\www\magento3 [email protected]:/var/www/html
but it gave ...
1
vote
1
answer
230
views
Rsync don't copy .BAK files
I'm using rsync to backup some files, but I realized that files with a .bak extension are not being copied.
sudo rsync -Cravp --delete /home/administrador/ArquivosAL/ /media/administrador/Seagate\ ...
1
vote
1
answer
58
views
Best way to backup million of assets? weekly changing (adding only) using Bash Script?
I am currently setting up a website including a CMS which has millions of assets. Smaller and bigger pictures mainly.
I would like to backup these files on a regular basis. For example weekly.
I have ...
1
vote
2
answers
4k
views
Does rsync verify file copies on local drives?
I use rsync to do incremental backup of the local ext3 HD in my laptop onto an ext4 HD connected through USB to the laptop. I assume that rsync treats both these HDs as local, so I'm wondering if ...
1
vote
1
answer
10k
views
rsync from local folder to mounted nfs share causes permission denied errors and nothing is copied
I have a home server that is sharing folders on the network using NFS.
I have mounted these folders on my computer, for example:
192.168.1.20:/mnt/raiddisk/john /mnt/john nfs auto,...
1
vote
2
answers
3k
views
How to authenticate myself as root over rsync+ssh into a remote server?
I am trying to use the rsync command but I am getting "permission denied" because the pi user hasn't permission to write without the sudo command
I am trying to move my apache2 folder from 10.0.2.2 ...
1
vote
1
answer
1k
views
Change the bandwidth control on rsync while it's running
I'd like to alter the bandwidth usage on rsync while it's running large transfers on a shared Internet connection to play nicely with others.
I thought something along the lines - "kill USR1 pid" ...
1
vote
2
answers
1k
views
Writing a script to rsync all directories
I have a huge set of backup files, each containing a directory of Videos. Each video directory is slightly different. I would like to merge these into a single directory to conserve, as I don't ...
1
vote
1
answer
285
views
Priveleges problem using rsync
I am trying to move a web directory from serverA to serverB I have sudo priveleges on both, but I do not know root's password.
Using the command
rsync -a serverA:/var/www serverB:/var/
I get an ...
1
vote
1
answer
5k
views
How to remotely backup a MySQL database?
How to backup MySQL database in a remote location using rsync?
I tried mysqldump but it is storing the backup in the local machine only. Also I need the backup files to be stored in tar format in the ...
1
vote
1
answer
26k
views
rsync daemon failed to start
While configuring one of OpenStack's components I had to restart rsync using the command sudo service rsync restart. Doing this, I get the following error message:
* Restarting rsync daemon rsync
* ...
1
vote
1
answer
2k
views
Backup, sync, and mirror application
On Windows I used Zback for:
Backing up some directories to a networked drive.
(i.e, copying all new files from source to target)
Keeping a mirror of some directories on a networked drive.
(i.e, ...
1
vote
3
answers
15k
views
Why do I get rsync error 20 when trying to customize Ubuntu?
when trying to customize my ubuntu desktop live iso i'm coming across an rsync error in the first stages of the tutorial.
when I execute:
sudo rsync --exclude=/casper/filesystem.squashfs -a mnt/ ...
1
vote
2
answers
2k
views
rsync copies files from working directory in addition to the requested ones
The following is a snip of output from bash -vx on my backup script
\+ rsync '' -avushi --stats --progress
--log-file=/home/bigbird/temp/rlog/rlog1.txt
/media/dataspace/data/webcasts/ /media/work/...
1
vote
1
answer
3k
views
How to backup user files automatically via rsync?
I need to take incremental backup of users files which is located in the following location automatically using a cron job. Could anyone explain the procedure to take backup using rsync in detail pls?
...
1
vote
1
answer
1k
views
Rsync permission issues via SSH
I am backing up a networked server via SSH. Unfortunately, I can't seem to figure out how to get root access to the networked server with Rsync. I am using the following command to perform the backup:
...
1
vote
1
answer
30
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 ...
1
vote
1
answer
303
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 ...
1
vote
1
answer
676
views
rsync error "rejecting excluded file-list"
So recently we updated 2 production servers and 1 development server for our websites. All are running Ubuntu 20.04. We also updated our build server that contains an installation of Jenkins. This one ...
1
vote
2
answers
613
views
(r)sync between Ubuntu virtual machine and windows host using a shared folder (after start and before restart/shutdown
The host machine is windows. I have an Ubuntu virtual machine(vmware). There is a shared folder between Ubuntu and Windows.
The shared folder is mounted in /etc/fstab:
vmhgfs-fuse /...
1
vote
1
answer
2k
views
How to use SSHPASS with rsync and SSH in an automated shell script?
I'm copying images from another PC every 3 hours. But recently I encountered an error.
When I try to ssh to that PC I get this:
Unable to negotiate with 192.xxx.xx.xx port 22: no matching key exchange ...
1
vote
1
answer
229
views
cron rsync , how to redirect to a file on desktop
I would like a regular backup of files on my disk to a backup server. Since I have lots of files (millions) I want to use rsync so only the differences are sent.
from Ubuntu 18.04 terminal, this ...
1
vote
1
answer
3k
views
Error while coping from Read-only source using rsync
I'm trying to copy a folder using rsync
rsync -avP "$src_path" "$target_path"
But rsync is giving me this error.
rsync: recv_generator: mkdir $target_path/sub_dir failed: Read-...
1
vote
1
answer
240
views
rsync can not delete .git/objects directory files
I am running the command:
rsync -ab --delete-delay /media/blueray/WDRed /media/blueray/UltrastarDaily
Just to be clear, it delete destination file (--delete-delay) if the file is removed from the ...
1
vote
1
answer
6k
views
Running Rsync in the background
Trying to run rsync in the background
rsync -rt /home/2/folder/1234 root@12345678:/stor/folder
CTRL-Z
Entering bg
and it runs in the background but now when I exit my SSH connection it stops?
I tried ...
1
vote
1
answer
2k
views
Warning: Permanently added '111.222.33.40' (ECDSA) to the list of known hosts
While I run rsync command to copy one directory from one server to another I get this warning: Warning: Permanently added '111.222.33.40' (ECDSA) to the list of known hosts.
The command looks like:
...
1
vote
1
answer
2k
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 ...
1
vote
1
answer
315
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,...
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....
1
vote
1
answer
1k
views
Process to restore /bin timeshift backup on Ubuntu 18.04
I have separate partition for root, home, and swap on the same disk.
I accidentally deleted /bin won't get into that here.
I have a backup via timeshift. But can't boot into the system. Not sure how ...