Author: Reille
This blog site: http://blog.csdn.net/reille/, reproduced this blog original article please indicate the source.
This article outlines: Resolves an issue in eclipse where the resource is out of sync with the file system.Eclipse version: Eclipse SDK 3.7.0
——————————————————————————————————————————————————————————————————— When searching in eclipse, sometimes the error dialog box pops up after
the words installed:# yum-y Install rsync
To perform an asynchronous synchronization operation:
/usr/bin/rsync-avz--progress rsync@192.168.3.191::backup /www
# crontab-e # (You can sync files every three minutes at timed time)
*/3
* * * * Rsync-avz--progress
rsync@192.168.3.191::backup
/www
The following command is complete:
#vi/etc/rsyncd.pasAdd passwordRsyncofpassNote that the client's passwo
= /etc/rsyncd.motdport = 873address = 192.168.20.24#uid = nobody#gid = nobodyuid = rootgid = rootuse chroot = yesread only = no# limit access to private LANshosts allow = *hosts deny = *max connections = 5# This will give you a separate log filelog file = /var/log/rsync.log# This will log every file transferred - up to 85,000+ per user, per sync# transfer loggin
: – Start with a comment[Email protected] ~]# cat/etc/lsync.conf------User Configuration file forLSYNCD.----Simple Example for defaultrsync, but executing moves through on the target.----For more examples, see/usr/share/doc/lsyncd*/examples/--Settings {--pidfile ="/var/run/lsyncd/lsyncd.pid"--nodaemon =false, Inotifymode="Closewrite", Maxprocesses=8, Statusfile="/tmp/lsyncd.status", Statusinterval=Ten, logfile="/var/log/lsyncd/lsyncd.log"}--# Monitor
When you install a desktop client on your computer, the icons for files and folders in the Sync folder are different from the normal state.
File
: The file has been synchronized with the cloud
: file is in sync processing
:
target directory space caused by the inability to synchronize the file error.Parameter description———-A is equivalent to a collection of-rlptgod-U is equivalent to –update and is not updated when the target file is newer than the source file-V Show Synchronized files–progress show the percent progress, transfer rate for file
Reprinted: http://blog.csdn.net/lotusyangjun/article/details/5611352
This is a problem where the file system is not synchronized because the resource in the project is modified outside eclipse. However, sometimes similar errors are reported if the resource is not modified outside eclipse.Solution: manually refresh the resource manager.(1) In eclipse, right-click the project directory and select F5 (refresh)(2) Set eclipse to automatically refresh.Use
In STS, when you start run on server or view the project file, an error is returned:Resource is out of sync with the file system :....This is a problem where file systems are not synchronized because resources in the project are modified outside eclipse or mycelipse (or files are modified between different systems). Ho
In Eclipse or Mycelipse, start run on server or view project file times wrong:
Resource is out of sync with the file system: '/test_1_struts_spring_hibernate/webcontent/web-inf/. Struts-config.xml.strutside '.
This is an issue in which the file system is out of sync becaus
In eclipse or Mycelipse, when you open a file under a SRC, the following error occurs:
Resource is out of sync with the file system: '/xxxx/src/xxxxx.properties '.
This is an issue in which the file system is out of sync because of modifications to the resource in the pr
In Linux, there is sync, and in Windows There is similar software, that is, cwrsync, which is divided into servers/clients. The latest version is 3.0.1. Download cwrsync
1. Install cwrsync
The installation process is simple. You can install the server. The server includes the client function. After the server is installed, the rsync and SSH services are added to the service. Go to service management and set it to automatic start. After the installatio
In the first five articles, the sync for ado.net Service is introduced, starting with this article, which will begin with information about using MSF for file (folder) synchronization. Because the application of file synchronization is very wide, so it can be used to introduce 3-4 articles. Let's start today by introducing the principles of MSF
Stream (code) at IO.C (759) [receiver=3.0.6]Close or configure IptabelesTurn on the 873 Port or close the iptables directlyBecause I'm a samba server, I'm using an internal network, so I closed the iptables before. Client-side settingsInstall rsync .Set the rsync boot upEdit User Password fileVim/etc/rsyncd/ryncd.secretsKingvon:testHere are Some common parameters of the rsync command -A Archive mode to recursively transfer files and preserve properties- R subdirectories are processed in recur
system provides the S Y N C and F S y N C two system call functions.#include void sync (void);int Fsync (intf l e d e s);Return: If the success is 0, if the error is-1s y n c simply queues the cache of all modified blocks into the write queue, and then returns, which does not wait for the actual I/O operation to end.The system daemon process (usually called U P d a T e) typically calls the S Y n C function every 3 0 seconds. This ensures a regular re
rsync file sync backup from Linux to LinuxFirst, the environmentServer (server side) that needs to back up files: 192.168.1.201 (RHEL 5)Server (client) receiving backup files: 192.168.1.202 (CENTOS 5)Second, installation configuration1. Server-side configurationA, using the system default installation of Rsync edit/etc/rsyncd.conf file, if not a new one.Vi/etc/rs
Restart the above example indicates that Apache is restarted every 30 minutes between 18:00 and 23:00 every day.
0 * * * * 6/USR/LOCAL/ETC/RC.D/LIGHTTPD Restart the above example indicates that the 11:00 PM restarts Apache every Saturday.
/1 * */USR/LOCAL/ETC/RC.D/LIGHTTPD restart restart Apache every hour
23-7/1 * * * * * * */usr/local/etc/rc.d/lighttpd restart 11 o'clock to the morning 7, restart Apache every hour.
0 4 * mon-wed/usr/local/etc/rc.d/lighttpd Restart monthly 4th and restart Apac
Saltstack automatic synchronization configuration file, in fact, I am a combination of crontab to get, is to put the Minion end of the machine into a group, and then for this group to do job execution State.sls to do.Note: In fact saltstack have their own schedule planning tasks. Just look at the dazed, and I bright actually job, and again, if you use automatic synchronization configuration file, if you hav
Use rsync can achieve file backup synchronization, a realistic use of the scene is, in the background upload template files, need to sync to another server, through other domain name address access, this need to upload files in the background automatically synchronized to the external access to the server.
Log the sh script for an rsync sync
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.