rsync

Rsync for Windows cannot run on Task Scheduler

為{幸葍}努か 提交于 2019-12-11 03:23:04
问题 I have batch script stated below and I run it on Task scheduler (Windows 2008 R2). When it runs, the status of the task is still running and takes too long. I couldn't see any errors or even in history or any logs. I already set the correct owner and permission of the locations in windows. Any one can shed me some lights? Thanks! SETLOCAL SET CWRSYNCHOME=C:\scripts\CWRSYNC SET CYGWIN=nontsec SET HOME=%HOMEDRIVE%%HOMEPATH% SET CWOLDPATH=%PATH% SET PATH=%CWRSYNCHOME%\BIN;%PATH% rsync -rltDuv -

Using gsutil with google drive (not google cloud storage)

坚强是说给别人听的谎言 提交于 2019-12-11 02:35:29
问题 gsutil use boto configuration file for authenticate at Google Cloud Storage. I generate ClientID in console.developers.google.com - that allow put files to Google Drive by python script: #!/usr/bin/env python from apiclient.discovery import build from apiclient.http import MediaFileUpload import httplib2 from oauth2client.client import SignedJwtAssertionCredentials credentials = SignedJwtAssertionCredentials( service_account_name='301714561983-nkd8kalz1op3bdjn75ija1b7ef1sslpr@developer

Rsync make flat copy

不打扰是莪最后的温柔 提交于 2019-12-11 02:26:54
问题 I'm trying to write a script that copy all the files of one dir (with subdirs) to the root of another dir. So Imagine I have this file structure: / pic.JPG PIC5.JPG FOLDER pic2.JPG pic3.JPG FOLDER2 pic4.JPG I want all the .JPG files from that directory and copy them over to another destination. But I don't want the directory structure, just the files. This is what I've got: "sudo rsync -aq --include '*/' --include '*.JPG' --exclude '*\' /source/picturesRoot/ /destination/flatView/ But it also

php exec() rsync ssh to remote server not working

喜夏-厌秋 提交于 2019-12-11 00:38:21
问题 I am trying to rsync file from local to remote server. When i do this on console it works: rsync -avzhe ssh /var/www/folder1/file5 root@192.168.56.74:/var/www/folder2 but when i do this on my php and run the php script, it doesn't work: $rysncCommand = "rsync -avzhe ssh /var/www/folder1/file5 root@192.168.56.74:/var/www/folder2"; shell_exec($rysncCommand); There is no error shown, so i can't really tell what is the error. Is there something wrong with my php script? 回答1: First, you need to

Vagrant rsync error: Error: Could not create directory '/home/Eric/.ssh'

不打扰是莪最后的温柔 提交于 2019-12-11 00:19:00
问题 I installer Vagrant 1.8.1 on Windows 10 and as well cygwin and cwRsync. Now i get this error when do vagrant up: There was an error when attempting to rsync a synced folder. Please inspect the error message below for more info. Host path: /cygdrive/m/development/Projects/www.webapp.local/ Guest path: /vagrant Command: rsync --verbose --archive --delete -z --copy-links --chmod=ugo=rwX --no-perms --no-owner --no-group --rsync-path sudo rsync -e ssh -p 2222 -o ControlMaster=auto -o ControlPath=C

shell command to child_process.spawn(command, [args], [options]) node.js

荒凉一梦 提交于 2019-12-10 23:59:38
问题 Basically, I just want to run rsync command on node app. The raw rsync code is the below: rsync -r -t -p -o -g -v --progress --delete -l -H /Users/ken/Library/Application Support/Sublime Text 3/Packages /Users/ken/Google Drive/__config-GD/ST3 Firstly, I tried child_process.exec(command, [options], callback) but, since the rsync output is long, the buffer exceeded. So, I tried child_process.spawn(command, [args], [options]) instead, and stream.pipe out. var spawn = require('child_process')

Can I include a password in my rsync call?

孤街醉人 提交于 2019-12-10 23:08:58
问题 I use rsync to update my static website. I currently cd to the local website directory, and run the rsync command, and then enter the password in the next line. I've saved my rsync call into a text snippet (such that _rs just expands to my call). Is there way to use something like a -p flag at the end and include the password too? My call looks like this: rsync -avzh -e ssh * foo@foo.org:"/home/foo/public_html/" 回答1: One of option is use public/private key pair, see How to auto rsync with ssh

How to authorize root to run gsutil?

好久不见. 提交于 2019-12-10 22:37:45
问题 backup_to_gcs.sh is a backup script that uses gsutil rsync to copy files to Google Cloud Storage. The backup script runs when called by user wolfv (who installed the google-cloud-sdk): $ /home/wolfv/scripts/backup_to_gcs/backup_to_gcs.sh backup_to_gcs.sh in progress ... backup_to_gcs.sh pass So far so good. But root needs to run gsutil so that the backup script can be called from Anacron. So lets have root run the script. It's safe for root and wolfv to share credentials because it's the same

rsync and logrotate transfers old logs every day

懵懂的女人 提交于 2019-12-10 18:44:02
问题 I have Apache web server producing considerable amount of log files. I do logrotate them every day on the server. Every night I rsync server backups over Internet to another computer. The speedup of log files sync is very close to 1, because logrotate renames all the files and rsync treat them as totally different, because they really are. I guess this is common problem, what tools would you recommend me to use. I want to keep some history of logs (like 50 days) on the server and whole log

Missing a step to update a static ReactJS site on GCloud

断了今生、忘了曾经 提交于 2019-12-10 14:12:54
问题 One would think that simply replacing the contents in the bucket associated with the app would update the app, but that is not the case. I have a site that I deployed yesterday. I created the bucket, then in the command line created the directory, then deployed the React app doing gsutil rsync -r gs://bucket-name ./app-name then I went into the project directory and did gcloud app deploy it all worked fine yesterday. But today i made changes, going into the same directory, you simply can't