search for: remotedir

Displaying 20 results from an estimated 40 matches for "remotedir".

2015 Sep 29
2
[PATCH 1/2] copy-in: print tar stderr when it fails
...uestfs-internal-actions.h" static int split_path (guestfs_h *g, char *buf, size_t buf_size, const char *path, const char **dirname, const char **basename); +static int drain_fd (guestfs_h *g, int fd, char **ret); int guestfs_impl_copy_in (guestfs_h *g, const char *localpath, const char *remotedir) { CLEANUP_CMD_CLOSE struct command *cmd = guestfs_int_new_command (g); - int fd; + int fd, err_fd; int r; char fdbuf[64]; size_t buf_len = strlen (localpath) + 1; char buf[buf_len]; const char *dirname, *basename; + CLEANUP_FREE char *tar_buf = NULL; int remote_is_dir =...
2015 Sep 29
2
Re: [PATCH 2/2] copy-in: error out early if the localpath does not exist (RHBZ#1267032)
...| 6 ++++++ > 1 file changed, 6 insertions(+) > > diff --git a/src/copy-in-out.c b/src/copy-in-out.c > index 0dd8cd3..2b1e4d4 100644 > --- a/src/copy-in-out.c > +++ b/src/copy-in-out.c > @@ -47,6 +47,12 @@ guestfs_impl_copy_in (guestfs_h *g, const char *localpath, const char *remotedir > char buf[buf_len]; > const char *dirname, *basename; > CLEANUP_FREE char *tar_buf = NULL; > + struct stat statbuf; > + > + if (stat (localpath, &statbuf) == -1) { > + error (g, _("source '%s' does not exist (or cannot be read)"), localpath)...
2015 Feb 02
0
[PATCH 7/7] customize: add copy-in operation (RHBZ#1135585).
...iff --git a/customize/customize_run.ml b/customize/customize_run.ml index fed905b..3c82cb4 100644 --- a/customize/customize_run.ml +++ b/customize/customize_run.ml @@ -175,6 +175,10 @@ exec >>%s 2>&1 * read when their arguments are met. *) () + | `CopyIn (localpath, remotedir) -> + msg (f_"Copying: %s to %s") localpath remotedir; + g#copy_in localpath remotedir + | `Delete path -> msg (f_"Deleting: %s") path; g#rm_rf path diff --git a/generator/customize.ml b/generator/customize.ml index c041f82..1c9092b 100644 ---...
2012 Oct 17
2
Rsync - include only files containing matching string
...ching string? I've read the man page and googled around but can't seem to get the syntax right. I either end up syncing all the files, or none of them. Here's how the code looks now (I will remove the dry run once it is working): rsync -avz --dry-run --include=*$YESTERDAY* remotehost:remotedir/ localdir/transfer/
2015 Feb 02
1
Re: [PATCH 5/6] New APIs: copy-in and copy-out
...derlying > C pointer to the handle (ie. C<guestfs_h *>). The purpose of this is > to allow other libraries to interwork with libguestfs." }; > > + { defaults with > + name = "copy_in"; > + style = RErr, [String "localpath"; Pathname "remotedir"], []; > + visibility = VPublicNoFish; > + shortdesc = "copy local files or directories into an image"; > + longdesc = "\ > +C<guestfs_copy_in> copies local files or directories recursively into > +the disk image, placing them in the directory calle...
2006 Sep 26
1
--files-from=FILE problem
Hello, I am trying to use the "--files-from=FILE" option with rsync version "version 2.6.3 protocol version 28" When I try to use the following syntax, it returns a syntax or usage error: rsync -azrv --files-from=/home/dira/filelist.txt remoteuser@remotehost:/remotedir I am also trying to use ssh with this which obviously yields an error also since the first part does not work rsync -azrv --files-from=/home/dira/filelist.txt -e "ssh -i /home/user1/cron/file-with-rsync-key" remoteuser@remotehost:/remotedir Any help on the actual us...
2015 Mar 23
1
[PATCH] customize: add --copy
From: Maros Zatko <hacxman@gmail.com> This adds --copy SOURCE:DEST, equivalent of calling g#cp_a src dst. RFE: RHBZ#1203817 Maros Zatko (1): customize: add --copy builder/cmdline.ml | 2 +- customize/customize_run.ml | 4 ++++ generator/customize.ml | 10 ++++++++++ 3 files changed, 15 insertions(+), 1 deletion(-) -- 1.9.3
2014 Dec 01
1
Re: [PATCH] fish: show synopsis if command syntax is wrong
...opsis done in this patch, but that can be > > another patch. I'll add this to my todo list. > > After some dig, the only problem I don't know how to solve is commands > with variable-length parameters, such as copy-in. Its synopsis is: > > copy-in local [local ...] /remotedir > > At first think its style could be: > > "style = RErr, [StringList "local"], []; > > But it seems the syntax corresponding to StringList is: > > copy-in "local local" /remotedir > > e.g. its a one parameter of List type, but not sev...
2015 Jan 26
0
[PATCH 5/6] New APIs: copy-in and copy-out
...allows you to retrieve the underlying C pointer to the handle (ie. C<guestfs_h *>). The purpose of this is to allow other libraries to interwork with libguestfs." }; + { defaults with + name = "copy_in"; + style = RErr, [String "localpath"; Pathname "remotedir"], []; + visibility = VPublicNoFish; + shortdesc = "copy local files or directories into an image"; + longdesc = "\ +C<guestfs_copy_in> copies local files or directories recursively into +the disk image, placing them in the directory called C</remotedir> +(w...
2015 Feb 02
8
[PATCH 0/7 v2] Make copy_in & copy_out APIs, and use copy_in in customize
Hi, attached there is the second version of the patch series adding copy_in and copy_out in the library, mostly moving them from guestfish. It also adds the copy_in usage in virt-customize, as aid in a new image building. Thanks, Pino Toscano (7): cmd: add a way to run (and wait) asynchronously commands cmd: add a child-setup callback cmd: add the possibility to get a fd to the process
2005 May 25
2
rsync file sync by priority
Hello All - I'm looking for a switch(es) to ensure rsync indexes the pull of files from remotedir, LIFO (last in first out) and then by .ext type where file basenames are similar. example) file_a.xml ctime of 09:01:07 file_a.jar ctime of 09:01:02 get transfered before file_b.xml ctime of 09:01:45 file_b.jar ctime of 09:01:45 and the .xml of basename $file would always be transferred first...
2007 May 11
1
Rsync File listing
...ver there are many files in the remote server directory, to why I am wanting to only pull a certain (-mtime -1). Here is what I have so far: /usr/local/bin/rsync -e ssh -avz --delete --rsync-path=/usr/local/bin/rsync --files-from=- /some/dir remoteuser@martins:/home/remoteuser | find server*/adhoc/remotedir* -mtime -1 -print /local/dir/ If there is a more efficient way on doing this I am open for suggestions. Thanks! -------------- next part -------------- HTML attachment scrubbed and removed
2014 Dec 01
2
Re: [PATCH] fish: show synopsis if command syntax is wrong
On Fri, Nov 28, 2014 at 03:00:39PM +0100, Pino Toscano wrote: > On Friday 28 November 2014 17:55:51 Hu Tao wrote: > > This patch lets guestfish show command synopsis if the syntax of command issued > > by user is wrong, rather than telling user that the number of parameters is wrong. > > The idea seems sound to me. > > Shouldn't that be done also for fish commands?
2013 Sep 04
2
issues syncing between one host and another
I have the following script that I am working on #!/bin/bash date=$(date +%F--%T) #ssh parameters user=aquj001 remotehost=qa4app localdir=/home/aquj001/INFENG/scripts remotedir=/home/aquj001/recievingDir.$date linkdest=$(ssh $user@$remotehost /usr/linux/bin/readlink/ /home/aquj001/recievingDir.current) rsync -a --compress --link-dest=$linkdest --out-format='%i %n%L %l %M' --omit-dir-times "$localdir" "$user@$remotehost:$remotedir" ssh $user...
2001 Oct 18
2
problems between different versions of rsync
Are there issues between different versions of rsync? Specifically I have a 2.4.6 on solaris 8 pushing to a 2.3.0 on solaris 2.6 over ssh(F-Secure version). The issue that I am seeing is that when I use the following command: rsync --delete -rlvp -e ssh2 $localdir user@host:remotedir The user and group are different on both boxes(neither being root). Any help would be appreciated. --Jeff -- Jeff Beley Internet Services
2015 Jan 26
6
[PATCH 1/6] cmd: add a way to run (and wait) asynchronously commands
--- src/command.c | 64 +++++++++++++++++++++++++++++++++++++++++++------- src/guestfs-internal.h | 3 +++ 2 files changed, 58 insertions(+), 9 deletions(-) diff --git a/src/command.c b/src/command.c index 4bb469b..e26573d 100644 --- a/src/command.c +++ b/src/command.c @@ -360,7 +360,7 @@ debug_command (struct command *cmd) } static int -run_command (struct command *cmd)
2015 Sep 29
0
[PATCH 2/2] copy-in: error out early if the localpath does not exist (RHBZ#1267032)
--- src/copy-in-out.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/copy-in-out.c b/src/copy-in-out.c index 0dd8cd3..2b1e4d4 100644 --- a/src/copy-in-out.c +++ b/src/copy-in-out.c @@ -47,6 +47,12 @@ guestfs_impl_copy_in (guestfs_h *g, const char *localpath, const char *remotedir char buf[buf_len]; const char *dirname, *basename; CLEANUP_FREE char *tar_buf = NULL; + struct stat statbuf; + + if (stat (localpath, &statbuf) == -1) { + error (g, _("source '%s' does not exist (or cannot be read)"), localpath); + return -1; + } int rem...
2015 Sep 29
0
Re: [PATCH 2/2] copy-in: error out early if the localpath does not exist (RHBZ#1267032)
...ed, 6 insertions(+) > > > > diff --git a/src/copy-in-out.c b/src/copy-in-out.c > > index 0dd8cd3..2b1e4d4 100644 > > --- a/src/copy-in-out.c > > +++ b/src/copy-in-out.c > > @@ -47,6 +47,12 @@ guestfs_impl_copy_in (guestfs_h *g, const char *localpath, const char *remotedir > > char buf[buf_len]; > > const char *dirname, *basename; > > CLEANUP_FREE char *tar_buf = NULL; > > + struct stat statbuf; > > + > > + if (stat (localpath, &statbuf) == -1) { > > + error (g, _("source '%s' does not exist (or...
2015 Sep 30
1
[PATCH v2] copy-in: error out early if the localpath does not exist
...) + 1; char buf[buf_len]; const char *dirname, *basename; + struct stat statbuf; + + if (stat (localpath, &statbuf) == -1) { + error (g, _("source '%s' does not exist (or cannot be read)"), localpath); + return -1; + } int remote_is_dir = guestfs_is_dir (g, remotedir); if (remote_is_dir == -1) -- 2.1.0
2002 Jun 06
1
rsync synchronizes VERY slow
hi, I have an 20G archive of pic files which would have to be mirrored onto another server. It contains large JPEGs, around 10k files, one of the servers is located in Boston, the another is in Budapest, Hungary. I use rsync rsync://remote_box/remotedir localdir/ -zcvr --progress --size-only The issue is that the remote server sends the filelist very slow. Looking into the rsyncd process with strace shows that rsync reads all the files from byte to byte, and after receiving the filelist, rsync client does the same. The aim would be sync depending...