search for: newdir

Displaying 20 results from an estimated 60 matches for "newdir".

2002 May 23
0
protocol errors when using --dryrun
...is when Im sync'ing newly generated directories. The dryrun command fails, spews, then complains about unexpect connection closures. Here's my dryrun command; rsync --rsh=ssh --blocking-io --compress --archive --update --checksum --del ete --verbose --dry-run /var/www/mydomain.com/olddir/newdir live.server.com:/var/www/mydomain.com/olddir/newdir In this example, /var/www/mydomain.com/olddir/ exists on both the local and live server. However, we have made a new directory on the local server (newdir), so we want that created, and its contents transferred. Here is what rsync (dryrun) makes...
2009 Jul 13
1
are new directories created inside the partial dir?
When --partial-dir is used rsync creates new or updated files inside a temporary dir. For example the new version of some/path/file is created in some/path/<partial-dir-name>/file and later moved. What happens if a new directory is created? If some/path/newdir/newfile is to be copied, is it done in some/path/<partial-dir-name>/newdir/<partial-dir-name>/newfile? Or is newdir created immediately and the temporary put in some/path/newdir/<partial-dir-name>/newfile? What happens if a directory already exists but its timestamp and/or permis...
2012 Feb 26
2
Help needed! Error in setwd(newdir) : cannot change working directory
...3,..... I want to modify my script so that it will run from /Rtest, and with the data directory name as arg passed to my R script. Here is my mytest02.R script: >># retrieve args>>args <- commandArgs(TRUE);>># store the current directory>>initial.dir <- getwd();>>newdir <- paste(initial.dir,args,sep="/");>>outfilename <- paste(args,"out",sep=".");>># change to the new directory>>setwd(newdir);>># load the necessary libraries>>library("A"); #>>library("B");>>library(&...
2005 Apr 10
1
PATCH: cosmetic fix to output with --existing -vv
Currently, rsync --delete -avvn test1/ test2/ --existing will give output such as: not creating new file "newdir" not creating new file "newdir/newfile" not creating new file "newdir/subdir" It would make more sense if it said: not creating new directory "newdir" not creating new file "newdir/newfile" not creating new directory "newdir/subdir" This fo...
2012 Jul 27
1
Rsync like Time Machine
...meter. I can accomplish those tasks via remote ssh commands, but I was hoping there was a better way. For example, is there any circumstance where you can coax rsync into creating a target directory that's not there already? % rsync <source> user at nas::module/<somedir-exists>/<newdir-with-date> So, newdir-with-date doesn't exist (yet). I would like to have rsync create it for me. Is that even possible? Thanks, -Clint -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.samba.org/pipermail/rsync/attachments/20120727/57e08564/...
2004 Jul 16
1
(PR#7100) and #7102: list.files fails with all.files = TRUE
rpeng@jhsph.edu wrote: > I get different behavior on Linux: > > system("mkdir newdir") > dir("newdir", all.files = TRUE, recursive = TRUE) ## R hangs The point is that all.files=TRUE implies returning also "." and ".."! Hence the recursion uses to be infinite (from "." to "." to "." ......). If recursiv = TRUE,...
2009 Feb 11
1
[PATCH 1/1] COM32 API: Add functions for directory use
.../com32/lib/opendir.c @@ -0,0 +1,41 @@ +/* + * opendir.c + */ + +#include <dirent.h> +#include <stdio.h> +#include <errno.h> + +#include <com32.h> +#include <string.h> +#include <unistd.h> +#include <fcntl.h> + + +DIR *opendir(const char *pathname) +{ + DIR *newdir; + com32sys_t regs; + + newdir = NULL; + + strlcpy(__com32.cs_bounce, pathname, __com32.cs_bounce_size); + + regs.eax.w[0] = 0x0020; + regs.esi.w[0] = OFFS(__com32.cs_bounce); + regs.es = SEG(__com32.cs_bounce); + + __com32.cs_intcall(0x22, &regs, &regs); + + if (!(regs.eflags.l & EFLAG...
2008 Dec 04
0
[PATCH 1/1] COM32: Add directory functions
.../com32/lib/opendir.c @@ -0,0 +1,41 @@ +/* + * opendir.c + */ + +#include <dirent.h> +#include <stdio.h> +#include <errno.h> + +#include <com32.h> +#include <string.h> +#include <unistd.h> +#include <fcntl.h> + + +DIR *opendir(const char *pathname) +{ + DIR *newdir; + com32sys_t regs; + + newdir = NULL; + + strlcpy(__com32.cs_bounce, pathname, __com32.cs_bounce_size); + + regs.eax.w[0] = 0x001F; + regs.esi.w[0] = OFFS(__com32.cs_bounce); + regs.es = SEG(__com32.cs_bounce); + + __com32.cs_intcall(0x22, &regs, &regs); + + if (!(regs.eflags.l & EFLAG...
2001 Aug 13
1
[PATCH] Maildir support
...lse if (mailstat.st_mtime < mailstat.st_atime) + printf("You have mail.\n"); + else + printf("You have new mail.\n"); + } + +#ifdef MAILDIR_FORMAT + /* Maildir format mailcheck */ + else if (S_ISDIR(mailstat.st_mode)) { + char *dirname; + int pathlen; + DIR *newdir, *curdir; + + pathlen = strlen(mailbox) + 5; + dirname = malloc(pathlen); + + snprintf(dirname, pathlen, "%s/new", mailbox); + newdir = opendir(dirname); + + snprintf(dirname, pathlen, "%s/cur", mailbox); + curdir = opendir(dirname); +...
2009 Mar 05
1
[PATCH 3/5] COM32: Improve opendir() to deal with no '/' at end of string
...d of the pathname string (by creating another string temporarily) then making the COMBOOT call. diff --git a/com32/lib/opendir.c b/com32/lib/opendir.c index aa2ba5b..7063f8c 100644 --- a/com32/lib/opendir.c +++ b/com32/lib/opendir.c @@ -16,10 +17,20 @@ DIR *opendir(const char *pathname) { DIR *newdir; com32sys_t regs; + char *tpath; + int pathlen; newdir = NULL; + pathlen = strlen(pathname); + if (pathname[pathlen-1] != '/') { + tpath = calloc(1, pathlen + 2); + strcpy(tpath, pathname); + strcpy(tpath + pathlen, "/"); + } else { + tpath = pathname; + } - strlcpy(__co...
2014 Jul 18
13
[Bug 10724] New: rsync 3.1.1 incorrectly creates extra dirs inside --backup-dir on Mac OSX
...he incorrect creation of empty dirs inside a --backup-dir. To reproduce: 1. mkdir foo 2. mkdir bar 3. cd foo; touch fun 4. cd .. 5. rsync -trlvhp foo bar Everything is as it should be: inside bar there is a clone of foo. But now continue (from the same working dir as from setp 5): 6. mkdir foo/newdir 7. cd foo; mv fun newdir; cd .. 8. rsync -trlvhpb --delete --backup-dir=mybackups --suffix=~ foo bar Expected result: the directory bar should look like this: bar/ bar/foo/ bar/foo/newdir/fun bar/mybackups/ bar/mybackups/foo/ bar/mybackups/foo/fun~ Actual result: rsync 3.1.1 has created an empty...
2019 Jul 16
4
Syncing Sysvol
...?? mkdir /tmp/samba ??? if [ "$?" != 0 ]; then ??????? exit ??? fi fi if [ ! -f /tmp/samba/olddir ]; then ??? echo '0' > /tmp/samba/olddir fi smbclient --machine-pass -e --max-protocol SMB3 \\\\"$pdc"\\sysvol -c "prompt; recurse; dir *" >/tmp/samba/newdir cmp /tmp/samba/newdir /tmp/samba/olddir > /dev/null 2>&1 if [ $? -ne 0 ]; then ??? mkdir /tmp/samba/sysvol ??? cd /tmp/samba/sysvol || exit ??? smbclient --machine-pass -e --max-protocol SMB3 \\\\"$pdc"\\sysvol -c "prompt; recurse; mget *" ??? mv "$sysvol&qu...
2009 Mar 06
0
[PATCH 1/2] COM32/opendir: remove unneeded zeroing
...t it and know I need to ignore it. Depends on the string of patches I've submitted this week diff --git a/com32/lib/opendir.c b/com32/lib/opendir.c index 5129273..fe2ee2e 100644 --- a/com32/lib/opendir.c +++ b/com32/lib/opendir.c @@ -44,8 +44,6 @@ DIR *opendir(const char *pathname) strcpy(newdir->dd_name, pathname); newdir->dd_fd = regs.esi.w[0]; newdir->dd_sect = regs.eax.l; - newdir->dd_stat = 0; - errno = 0; } else { /* ENOTDIR is another but a file must exist */ errno = ENOENT;
2010 Jun 11
1
removing a non empty directory
I'd like to remove automatically a directory that may be non empty. I tried: > file.remove(NewDir, recursive=TRUE) [1] FALSE Warning message: In file.remove(NewDir, recursive = TRUE) : cannot remove file 'Prostate_Validated_mirWalk', reason 'Directory not empty' Is there another command to remove entire directories including their contents ? Thank you. Maura tutti i telef...
2002 Jun 27
2
Samba 2.2.5 Recycle Bin file permissions
Using Samba 2.2.5 on FreeBSD 4.5. We have a file share used by several people working on common projects. The share is set up with force group = cad create mask = 0774 force create mode = 0774 directory mask = 0775 force directory mode = 0775 so that everyone can create/modify any file in the share. The new VFS recycle bin, however, sets the file
2010 Jul 09
8
DO NOT REPLY [Bug 7565] New: --check-point=<TIME> +options.c.patch +generator.c.patch
...f [ ! -d $dest ]; then req=1 fi if [ $req ]; then echo "SRC and DST required" exit 1 fi exit if [ "$1" != "" ]; then echo RECREATE ITEMS IN HOME..... date rm -rf /$dest/OLD* touch /$dest/NEW rm -rf /$dest/NEWDIR mkdir /$dest/NEWDIR touch -t 200808080808 /$dest/NEWDIR/OLD-IN-NEW touch /$dest/NEWDIR sleep 1 rm -rf /$src/NEW* touch -t 200808080808 /$src/OLD rm -rf /$src/OLDDIR mkdir /$src/OLDDIR touch /$src/OLDDIR/NEWINOLD touch...
2016 Apr 21
0
Automatic sysvol replication through detection of filesystem events
...sysvol. Start the watcher.py daemon, giving as a parameter the location of "watcher.ini": /somefolder/watcher.py -c /somefolder/watcher.ini start You can now watch the results. Input the following at the source DC (attention, your paths may differ): mkdir /usr/local/samba/var/sysvol/newdir touch /usr/local/samba/var/sysvol/newdir/newfile rm -f /usr/local/samba/var/sysvol/newdir/newfile rmdir /usr/local/samba/var/sysvol/newdir Creation and deletion of files and folders will be immediately mirrored on the target DC. You can either make all Group Policy edits in the source AD DC or u...
2019 Jul 13
2
rsync alternative -- smbclient?
...ivatedir/sam.ldb "(samAccountName=$pdc$)" | grep dNSHostName | sed -n -E 's/dNSHostName: (.*)/\1/p'` echo $peer mkdir /tmp/samba || echo touch /tmp/samba/olddir smbclient --machine-pass -e --max-protocol SMB3 \\\\$peer\\sysvol -c "prompt; recurse; dir *" >/tmp/samba/newdir cmp /tmp/samba/newdir /tmp/samba/olddir if [ $? -ne 0 ]; then mkdir /tmp/samba/sysvol cd /tmp/samba/sysvol smbclient --machine-pass -e --max-protocol SMB3 \\\\$pdc\\sysvol -c "prompt; recurse; mget *" mv $sysvol $sysvol.old mv /tmp/samba/sysvol $sysvol.old/.. samb...
2019 Jul 16
0
Syncing Sysvol
...0 ]; then > exit > fi > fi > > if [ ! -f /tmp/samba/olddir ]; then > echo '0' > /tmp/samba/olddir > fi > > smbclient --machine-pass -e --max-protocol SMB3 \\\\"$pdc"\\sysvol -c > "prompt; recurse; dir *" >/tmp/samba/newdir > > cmp /tmp/samba/newdir /tmp/samba/olddir > /dev/null 2>&1 > if [ $? -ne 0 ]; then > mkdir /tmp/samba/sysvol > cd /tmp/samba/sysvol || exit > smbclient --machine-pass -e --max-protocol SMB3 \\\\"$pdc"\\sysvol > -c "prompt; recurse; mget...
2007 Oct 26
6
script help
Hi I am sure the answer here is really easy but i am stuck! # mount | grep data | awk '{print$1,$2,$3}' gives me the info i require locally, however i need to execute this over about 1000 hosts so i run things remotely using ssh something like # MOUNTER=`ssh $i 'mount | grep data | awk '{print$1,$2,$3}''` however this fails as at the end of the line there are 2 ticks