All Questions
23
questions
0
votes
0
answers
88
views
multiple folder sync with rsync from server to local storage
im trying this for a first time, and im not the best in sh.
#!/bin/sh
SCRIPTPATH='server/cronscripts'
SSHKEYNAME='keyid'
FROMDIRPATH='server/source-folder/folderA/'
TOSERVERANDPATH='local-...
0
votes
0
answers
441
views
Is there a way to keep two directories (on two servers) in sync with each other, truly?
I have two servers in AWS that we are using to store a software packages codebase that is accessed by the web application/server.
/var/www/vhosts/application-dua/content/
This same folder structure ...
0
votes
1
answer
148
views
How can one rsync from a file and delete superfluous files/dirs on destination
When using rsync --files-from=$FILE I would like to delete all files and directories in the destination that are not listed in the file.
e.g
mkdir /tmp/sync
cd /tmp/sync
mkdir left right
touch left/...
3
votes
2
answers
502
views
Can Unison be made to ignore bind mounts or hard links?
I'm looking for the best way to sync my home directory to and from a 120GB USB drive. The catch is that I use bind mounts (which I don't want to be followed) and hard links (which I do want to be ...
2
votes
0
answers
1k
views
Remote sync without rsync
My setup is as follows:
Two Linux machines running Debian 9
A "storage box" on the internet rented from a cloud hosting company. This box can only be accessed via the SFTP, Samba and WebDAV protocols ...
2
votes
1
answer
871
views
How to back up efficiently (without copying files that have not been changed)?
I regularly do back ups of files on my laptop using an external hard-drive. I use a command line of a Linux system (Ubuntu). So far I have just copied everything to a directory and have removed the ...
5
votes
1
answer
825
views
Is there a way to run rsync over a USB / serial connection through a terminal program.
I want to keep two directories in sync between my laptop (Ubuntu) and my PocketCHIP (Debian) which connects over USB serial.
I use cu to log in to the PocketCHIP, but is there a way to rsync between ...
0
votes
1
answer
330
views
RSync Folders - Sync Multiple folders on different servers
I have a folder called Test and it has only one file called file1 on four different servers. I want all four folders to be in sync If file1 changes on any of the servers.
Does Rsync support this kind ...
1
vote
0
answers
2k
views
when using rsync --copy-links, rsync ignores symlink name changes
We're using symlinks to create "virtual" folder/file trees using content from all over the disk. In essence we have a mess and a script will create an organized file tree by creating symlinks to those ...
1
vote
1
answer
686
views
Syncing immutable folders on linux (rsync/unison/some thing else?)
Consider the following directory layout:
/foo
/ABZE1
a1.txt
a2.txt
...
a59682.txt
/BBSDF
b1.txt
b2.txt
....
b42333.txt
...
foo is the parent folder, ...
2
votes
3
answers
3k
views
File synchronization on Linux over network: scp or rsync?
I have two Linux (Debian) machines "A" and "B" connected to each other wireless over the router.
On the machine "A" I run a script that generates every 5 seconds a new 1MB file in the specific ...
0
votes
0
answers
491
views
Linux: sync/merge two (or more) directories, but keep older file versions?
got alotta help throughout the time just by simply scrolling and crawling through the vast landscape of qualified answers here from you, now's the time to ask my first question and it looks rather ...
0
votes
0
answers
3k
views
Synchronize two folders over sftp?
I have a cloned git repository in a directory and a sftp server, I want the server to be in sync with my repository.
I've been trying multiple Atom/Sublime Text plugins with no luck, they only upload ...
0
votes
1
answer
324
views
Rsync: Mirror only certain directories based on presence of dotfile
I have a large amount of files on a server and I have a partial mirror of these files on my Mac (i.e. only some folders exist in the mirror). I would like to have a sync from the Mac to server using ...
1
vote
1
answer
2k
views
File synchronization between two Linux servers
We have a two web servers running CentOS. We need to sync images that users uploaded.
No servers should be needed to synchronize those, because we need to handle failover. Also, we need to do a two-...