The tag has no usage guidance.

learn more… | top users | synonyms (1)

1
vote
1answer
20 views

copy_only_missing? - Copy from /A to /C only paths missing on /B and /C - concise way

I'd like to copy from /A to /C only paths missing on /B and /C. (Please assume those are paths, and can represent also remote locations e.g. mounted via sshfs) I wonder... Is there more concise way ...
0
votes
1answer
27 views

FTP Sync via GVFS

I need to edit PHP files on an FTP server and since my local editor is unreliable when saving to a GVFS mount, I let rsync do the synchronization: #!/bin/bash webroot=/run/user/1002/gvfs/ftp\:host\=...
3
votes
1answer
394 views

How do I sync dropbox folders to a Raspberry Pi?

I have been using a script that uses curl to sync dropbox folders to a Raspberry Pi. Cron calls the script every hour to retrieve most of the folders. Can anyone recommend a better solution, maybe ...
5
votes
0answers
98 views

Synchronising millions of files between two Linux servers

I have a server which exports a directory containing ~7 million files (mostly images) from its local disk to network clients via NFS. I need to add a second one for the sake of HA, and to keep it in ...
2
votes
2answers
7k views

RAID resyncing automatically?

I rather randomly checked the status of my RAID arrays with cat/proc/mdstat and realized, that one of my arrays seems to be resyncing: md1 : active raid1 sdb7[1] sdc7[0] 238340224 blocks [2/2] [...
1
vote
1answer
1k views

How to sync bookmarks (favourites) between Google Chrome and Chromium

I'm new to the world of Raspberry 2 and Linux and I have install Chromium on the Raspberry. I did this because I thought it would be a good way to access my Google Chrome Bookmarks (Favourites). ...
3
votes
0answers
61 views

Sync with Onedrive

I would like to sync (and backup) my /home directory with OneDrive. I found some great terminal clients, where you can even mount your directory, but nowhere did I found an option to this with some ...
5
votes
1answer
473 views

Using syncing files only comparing file name and not extension

I'm trying to sync 2 folders containing audio files of multiple types (WMA, MP3, M4V,...). I want to sync these folders but the sync process should only take into account the file names, not the ...
1
vote
2answers
302 views

lsyncd: Is it possible to sync individual files from a list?

I want to sync certain files from one linux system to another using lsyncd. The files are not confined to one directory, neither do I want all files from a directory. Specifically I'm trying to make ...
1
vote
2answers
45 views

Differences between rsync on remote and rsync local on mounted sshfs?

Is there any difference if I run rsync with remote host (ssh://) as source/destination or use local path to share mounted directory via sshfs? Could there be differences be with regards to security ...
5
votes
2answers
4k views

Sync with a Directory Listing of Web Server

Is there an easy way to keep a folder synced with a directory listing via HTTP? Edit: Thanks for the tip with wget! I created a shell script and added it as a cron job: remote_dirs=( "http://...
0
votes
1answer
31 views

Sometimes syncing gets stuck with dd

Sometimes when I use dd then sync or use dd with conv=fsync, the syncing process gets stuck, but sometimes not, with exactly the same input and output targets and configuration. dd if=2016-03-18-...
1
vote
2answers
58 views

Linux file hierarchy - what's the best location to store lockfiles?

I want to synchronize processes based on lock files (/ socket files). These files should only be removable by their creator user. There are plenty of choices: /dev/shm /var/lock /run/lock /run/...
1
vote
1answer
24 views

How to upload my emails to another email server I've downloaded via IMAP from my 1st one?

I want to download my emails via IMAP from email account and upload them to another. I want to do that manually in Python. I know how to retrieve my emails via IMAP, but how can I actually "upload" ...
3
votes
1answer
30 views

How to one way sync two folders on startup

I am trying to synchronize: /var/www/CI_MAIN/ according to the changes made in: /home/coco/workspace/CI_MAIN/ (PDT's workspace). To do this, I entered sudo crontab -e in the command ...
66
votes
6answers
68k views

scp without replacing existing files in the destination

How do I copy an entire directory into a directory of the same name without replacing the content in the destination directory? (instead, I would like to add to the contents of the destination folder)
2
votes
1answer
184 views

Running `unison -repeat watch` yields filesystem watcher error

I'm trying to sync a folder in my host OSX to a VM running Ubuntu. (laravel/homestead). This is the command I run on my host: $ unison ssh://vagrant@192.168.10.10//home/vagrant/www ~/unison/www -...
0
votes
1answer
38 views

Synchronous I/O on sysfs files

I'd like to guarantee that what I write to a sysfs file (specifically the /sys/class/gpio files) is sync'd to the actual register. The code I had initially opened the file with the O_SYNC flag, which ...
10
votes
5answers
6k views

Note taking app that can sync both android and Linux

I've been looking high and low for an Evernote alternative for Linux. I know I can use Everpad or Evernote in WINE but they don't work natively. Any note-taking app would be fine as long as it can ...
21
votes
8answers
4k views

Any way to sync directory structure when the files are already on both sides?

I have two drives with the same files, but the directory structure is totally different. Is there any way to 'move' all the files on the destination side so that they match the structure of the ...
1
vote
2answers
68 views

Is it possible to synchronization real time date from source to destination?

We want to copy ~800GB of data from a source server to destination server using rsync. I was wondering if its safe to use rsync without shutting down source server application? Can rsync handle real ...
0
votes
0answers
27 views

Scheduler for a system call in linux to execute some event

I am thinking about a use case. I want a script that will start up my Linux system, open a particular website and then shut down automatically. Is it possible to create a scheduler for my system? As ...
1
vote
2answers
211 views

bi-directional sync with rsync

I am trying to setup bi-direction or two way sync with rsync. In my case I only need to delete the files when syncing from B to A. So, I was thinking of running rsync twice as follow : rsync -rtuv ./...
10
votes
3answers
6k views

Why is my EC2 server's time off by ~10 seconds every day?

I have what I believe is a system file, /etc/cron.daily/ntpupdate which runs ntpdate ntp.ubuntu.com daily to sync with the network time. Every day it generates output very similar to this: /etc/cron....
4
votes
2answers
148 views

How do I sync files between two drives?

What command can check that a directory contains the same files as another directory, all the files are up to date and copy any updated files or new files to the first directory. It should not care ...
0
votes
0answers
22 views

fsync () get the impact of road /proc/sys/vm/drop_caches?

I have been testing the service life of TLC(1000write) SD card (4GB). SD card has been formatted with a fat partition. I am a write (), fsync () on a file of 10M SD card repeatedly. 1st (10M): ...
9
votes
5answers
2k views

Rsync that handles moves sensibly

I've been successfully using rsync to synchronize my home directories between my laptop and my netbook (both using ext4 with Linux). My only problem with it is that every now and then I like to ...
0
votes
1answer
60 views

rsync exclude directory not working, when also scanning for only *.php files

Im trying to rsync all the .PHP and .HTML files from any directory inside of /home/ . However in /home/site2/public_html/cache_old/ there are .html files that i do not want to include in the sync ...
1
vote
0answers
20 views

Does rsync\duplicity real write files on mounted storage?

I've got an external storage, which is mounted as cifs: $: mount ... //somespace/backup on /mnt/backup type cifs (rw) ... And I have write some file: $: rsync /home/user/files /mnt/backup or $: ...
1
vote
0answers
81 views

Is there any way to syncronize notifications between a Linux desktop and iOS?

I use notify-send and dunst for my notification system on my desktop. After a research, I found out that there are a few commercial solutions for sending push notifications to iOS devices, and I even ...
0
votes
1answer
104 views

Sync muliple PCs with Unison

I need to sync 3 computers between each other in same way as Dropbox does e.g. if file changed on one pc others reflect this change as well. So i have choosen Unison. And found that it works perfect ...
16
votes
8answers
9k views

How do I copy all files and directories except certain ones over ssh?

Using the Linux command line, I use the scp command to copy up all the files and folders from a certain directory. However, I don't like to consume wasted bandwidth for copying up things I rarely ...
0
votes
1answer
308 views

Requiring a script to sync ramdisk before and after reboot

On a specific machine I use a lot of RAM to serve websites really fast directly from RAM (which by the way is working amazingly well). For this I have mounted a ramdisk in /etc/fstab (in debian 7, via ...
1
vote
0answers
14 views

Korganizer synchronization

I use Korganizer in my main laptop and in my secondary laptop - both runs netrunner linux. Recently the main went kaboom and i realize the necessity of having a way to synchronize my data accress ...
1
vote
1answer
82 views

Signal execution details

I am reading some Linux documentation about 'signals' and I still have these questions making noise in my mind: 1) A 'signal' handler execution is done when the 'target' process receives its ...
3
votes
1answer
663 views

Syncronising Calendar and Contacts between Thunberbird and Android using Linux Software

I am looking for software to sync my Calendar and my Contacts between Thunderbird, my Android phones and probably other clients like KDEs Kalendar and Kontacts. I want to have both parts available ...
1
vote
1answer
86 views

Preserve date modified on directories / folders with rsync

I am trying to backup a failing hard drive and rsync would be ideal due to the features it has such as progress indicator and ability to stop and resume. The one issue I am having is that while file ...
2
votes
0answers
304 views

Unison replacing newer symlinks with older files using the option -force newer

I'm having a problem with Unison and symlinks. I created a test case for making it easier to understand and try this for yourself. First, we create the two directories that will be synced. And some ...
9
votes
3answers
2k views

sharing or synchronizing history between Zsh and Bash

I often find myself switching between Bash and Zsh, and using the history search functionality to recover a command. However, since Bash and Zsh have different history files, I often find that the ...
2
votes
1answer
162 views

Time is not synchronized in Linux VM

I am using one Linux VM through VNC viewer from my Windows machine. What I am seeing is that time between two is not synchronized. It seems that the VM is about 5 minutes delayed from Windows (windows ...
2
votes
2answers
297 views

rsync option to exclude partial files

We are using rsync to sync two folders on same machine. Files will be written to a source folder from another application. We have the problem that, even if a file is not completely written/copied to ...
1
vote
1answer
28 views

Do `lsof` listings include unsynced/delayed writes?

As a follow up to an answer about unsynced files i was wondering if lsof counts delayed writes as open files? If an application has closed a file, but the file is not yet physically on the device, ...
1
vote
1answer
80 views

How to achieve a bi-directional sync of userN files by user1 while keeping mtimes?

user1 wants to do a bi-directional sync between 2 machines. user1 is a member of group2 and has a non-privileged ssh tunnel. There are lots of files and dirs such as: rwxrwx--- userN group2 enclair/...
2
votes
1answer
34 views

Waiting for two events

I have the following requirement: I have a script executing every N hours which downloads a file via wget, and then does some processing (outputing results to several files). Once this is finished, it ...
1
vote
2answers
98 views

Compare folder to folder structure

I have my camera's SD card with pictures and films. On my home box, I have a folder structure with directory names like this: images/YYYY-MM-description, sometimes there are subfolders with varying ...
0
votes
2answers
133 views

Does ntpd have a default driftfile?

I have an embedded Linux with busybox's ntpd. My ntpd.conf is tinker panic 0 server pool.ntp.org iburst server 0.pool.ntp.org iburst server 1.pool.ntp.org iburst restrict default kod nomodify notrap ...
2
votes
2answers
782 views

Does sync command remove the dirty cache in the memory?

I am aware that sync command flushes the dirty cache into disk. I have run free command first, then sync, and then free again. The result of latter free command shows more free memory available than ...
0
votes
0answers
44 views

How do load balanced mail servers function with each other and clients?

If there are two mail servers running postfix/dovecot as both primary in a load balanced configuration, how do they function with each other and with clients? For example, my DNS record will look ...
1
vote
2answers
136 views

Duplicate stdin to stdout and stderr, but in a synchronized way

I need to duplicate the stdout of a producer and feed it to two consumer in a synchronized fashion. consumer 1 producer | duplicator | consumer 2 ...
1
vote
1answer
71 views

Syncing folders where multiple files are partially changed

I have following directory structure on remote machine ALLLibs/LibA/LibA.1 ALLLibs/LibA/LibA.2 ALLLibs/LibB/LibB.1 ALLLibs/LibB/LibB.4 for info LibA.1 and LibA.2 are version of a directory, ...