The tag has no usage guidance.

learn more… | top users | synonyms (1)

2
votes
3answers
35 views

Is it “broken” to replace an existing file without fsync()?

In Linux's mount(2) man page, I noticed the following excerpt: Many broken applications don't use fsync() when replacing existing files via patterns such as fd = open("foo.new")/write(fd,...)/...
0
votes
1answer
75 views

How to install Unison 2.40 on Ubuntu 16.04 xenial (to resolve “Fatal error: Received unexpected header”)

On my raspberry pi computers: pi@mizu:~ $ unison -version unison version 2.40.102 On my desktop ubuntu 16.04 xenial: kayd@Trunk:~$ unison -version unison version 2.48.3 When trying to ...
0
votes
0answers
25 views

mbsync not downloading new mails?

My .mbsyncrc file includes the lines MaxMessages 1000 ExpireUnread yes However, when attempting to download my gmails, it doesn't seem to sync the newest ones. For example, I've just done an ...
0
votes
1answer
29 views

lsyncd Error: There can only be one config file in command line. Ubuntu

I am pretty new to Linux bash. I am trying to mirror two folders using lsyncd command. Here are the steps I followed. Install the lsyncd package Run the following code: sudo lsyncd /home/...
0
votes
0answers
12 views

Debug CalDAVs sync failures with network sniffer, how to be display prettyprinted traffic in terminal

I need to debug some unsuccessful CalDAV synchronization requests. I have functioning clients, so I can compare working vs broken. The traffic is SSL-encrypted, but I have the key. I have root on a ...
3
votes
1answer
34 views

Fit timestamps of multiple files/folders to existing ones

I've copied a large directory to another location (through a network). I needed to preserve all the timestamps (especially ctime and mtime). However somewhere in the process I screwed things up. (I ...
0
votes
0answers
13 views

Debian USB-device-remembering

Given Smartphone (ZUK Z1 with cyanogen os). Im using debian testing with kernel 4.6.0-1-amd64. Task I want to sync my local music files with my smartphone. I heard about "clementine" and installed ...
1
vote
1answer
33 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
35 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\=...
7
votes
0answers
122 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 ...
3
votes
0answers
84 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 ...
1
vote
2answers
79 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 ...
0
votes
1answer
37 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
63 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
31 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 ...
2
votes
1answer
282 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
47 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 ...
0
votes
0answers
29 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
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 ...
1
vote
2answers
267 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 ./...
4
votes
2answers
153 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
27 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): ...
0
votes
1answer
63 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
21 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
90 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
124 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 ...
0
votes
1answer
373 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
17 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
83 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 ...
1
vote
1answer
100 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 ...
1
vote
1answer
31 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, ...
2
votes
1answer
35 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 ...
0
votes
2answers
161 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 ...
0
votes
0answers
47 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
1answer
91 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/...
1
vote
2answers
142 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
74 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, ...
1
vote
2answers
101 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 ...
2
votes
2answers
342 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 ...
3
votes
0answers
44 views

Can I make cross-computer sharing compatible with tinfoil-hat security (password managers, email, etc.)

Preface: I realize the following is asking for tinfoil-hat type security, but I'm really curious for answers to my questions -- not suggestions to enable two-factor logons on gmail, etc. and call it a ...
1
vote
0answers
42 views

date/time setting does not work after unplugging power adapter or sudden power cut

For some reason, I want to configure the date/time in my Linux (CentOS 6.5) to be different from the REAL date/time, but the setting won't work if I turn my computer(desktop not laptop if this matters,...
2
votes
1answer
185 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 ...
4
votes
2answers
325 views

how can I sync a specific device? [duplicate]

Is there a way to sync a specific device in Linux? This would be used to ensure that, e.g., writes to a USB thumb drive have taken place without waiting for queued writes from a video processing job ...
1
vote
1answer
46 views

How to avoid recursive directory traversal for syncing two directories? [closed]

I see a lot of useless recursive directory traversal in: rsync unison owncloud All above application (and many more) do recursive directory traversal over and over again. Since the application ...
1
vote
2answers
325 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
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
2answers
65 views

Use USB to synchronize large directory between two disconnected servers

I'd like to synchronize a large directory between two disconnected servers with a USB device that's too small to hold the entire directory. Each server has a majority of the data and the changed files ...
8
votes
2answers
2k views

How to sync two folders with command line tools?

Having migrated to Linux from Windows, I would like to find an alternative software to Winmerge or rather learn command line tools to compare and sync two folders on Linux. I would be grateful if you ...
2
votes
2answers
157 views

Separate bashrc file for ssh sessions to avoid Unison Errors

Recently my Unison started throwing up some strange error whenever I tried to sync between my laptop and my PC. I realized that I had added a line in bashrc that would print my pending tasks whenever ...