search for: olddir

Displaying 20 results from an estimated 47 matches for "olddir".

2019 Jul 16
4
Syncing Sysvol
..." = "$pdc" ]; then ??? echo "This is the DC holding the PDC Emulator role" ??? echo "Cannot continue...Exiting." ??? exit fi if [ ! -d /tmp/samba ]; then ??? 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 /tm...
2002 May 23
0
protocol errors when using --dryrun
...having 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)...
2019 Jul 16
0
Syncing Sysvol
...the DC holding the PDC Emulator role" > echo "Cannot continue...Exiting." > exit > fi > > if [ ! -d /tmp/samba ]; then > 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 >...
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
2020 Nov 05
1
CTDB DBDIR Options? Errors
...n or otherwise to set the SELinux policy for > persistent/volatile database files moved to a different directory? I'm not sure if you're asking a question generic enough for these answers... The security contexts in question probably depend on the distribution. If you run ls -Z <olddir> where <olddir> is the default location for the given database directory, then you'll find out the context and can use chcon <context> <newdir> to set it. You also should just be able to do chcon --reference=<olddir> <newdir> I hope that's not too...
2013 Aug 30
1
Problem with texi2pdf(..,clean=TRUE)
Dear all, To create a *.pdf file from a *.Rnw file I do: olddir <- getwd(); setwd(outdir); tryCatch({Sweave("QAReport.Rnw"); tools::texi2pdf("QAReport.tex", clean=TRUE) }, finally = setwd(olddir) ); This works fine, however 'clean=TRUE' does only work...
2010 Jul 09
8
DO NOT REPLY [Bug 7565] New: --check-point=<TIME> +options.c.patch +generator.c.patch
...ate 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 -A 010101 /$src/OLDDIR/NEW-IN-OLD touch -t 200808080808 /$src/OLDDIR echo " SRC LIST --------------------------------------" ls -laTG /$src/ ls -laTG /$src/OLDDIR/NEW-IN-...
2010 Nov 24
2
maildir maintenance?
Hi, I'm running version 1.2.15 (so no doveadm) with around 6000 maildir users, some of which are very large. For completeness, the details of the setup are as follows: - The maildirs are stored via NFS. - The indexes are on a volume local to the dovecot server. - Only one IMAP server currently. - A separate sendmail/procmail server delivers via NFS. I recently wrote the attached script
2009 Oct 30
1
.Rprofile replacement function setwd() causing errors
...ion(dir){ .Internal(setwd(dir)) utils::setWindowTitle( short.path(base::getwd()) ) }, "base") However, this causes errors in some cases where setwd is used by other functions, particularly example(): > library(HistData) > example(Snow) Error in setwd(olddir) : cannot change working directory > traceback() 6: setwd(olddir) 5: open.srcfile(srcfile, first) 4: open(srcfile, first) 3: getSrcLines(srcfile, lastshown + 1, srcref[3L]) 2: source(zfile, local, echo = echo, prompt.echo = paste(prompt.prefix, getOption("prompt"), sep = "...
2019 Jul 13
2
rsync alternative -- smbclient?
...n | sed -n -E 's/PdcEmulationMasterRole owner: CN=NTDS Settings,CN=([^,]*),.*/\1/p'` peer=`ldbsearch --cross-ncs -H $privatedir/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 \\\\...
2007 Apr 23
0
Correction to PR #9631 (PR#9632)
...t;")) } fileExtension <- function(string){ n <- nchar(string) chars <- substring(string, 1:n, 1:n) lastDot <- n + 1 - match(".", rev(chars), nomatch = n + 1) substring(string, lastDot + 1, n) } sn <- sectionnames if(any(nchar(sn) > 8)){ oldDir <- libname libname <- tempdir() allFiles <- list.files(oldDir) oldNames <- character(0) for(i in 1:length(sn)){ fName <- grep(sn[i], allFiles, value = T) if(length(fName) == 0) stop(paste("sectionname", sn[i], "not found")) old...
2019 Jul 13
0
rsync alternative -- smbclient?
...EmulationMasterRole owner: CN=NTDS Settings,CN=([^,]*),.*/\1/p'` > peer=`ldbsearch --cross-ncs -H $privatedir/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...
2013 Mar 05
2
Need to unmount an LV from host system
Greetings - Ok, I made a mistake that I need to fix. Fortunately it is not a destructive mistake, but I need some advice on how to correct the problem. CentOS 6.3 host system named Earth I was creating some new logical volumes within my exiting volume group for a new virtual machine using the LVM GUI. When I created the LV that I plan to use for root partition of the new VM (Bacteria) I
2020 Nov 04
2
CTDB DBDIR Options? Errors
Running into problems configuring different locations for the volatile and other database directories. Can someone provide a quick sanity check on what I'm doing below? Thank you. Given [database] volatile database directory = /var/cache/dbdir/volatile persistent database directory = /var/cache/dbdir/persistent state database directory = /var/cache/dbdir/state And given, [root
2002 Oct 01
3
how often to 'fsck -D' ?
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 subject about says it all. should this only be done once per device or periodically? thanks! - -- Douglas J Hunley (doug at hunley.homeip.net) - Linux User #174778 Admin: Linux StepByStep - http://www.linux-sxs.org and http://jobs.linux-sxs.org Illiterate? Write for help! -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.0 (GNU/Linux)
2018 May 14
1
Logrotate
...e is a very small time slice between copying the file and truncating it, so some logging data might be lost. When this option is used, the create option will have no effect, as the old log file stays in place. [root at srv-rhsoft:~]$ cat /etc/logrotate.d/samba /var/log/samba/* { notifempty olddir /var/log/samba/old missingok sharedscripts copytruncate }
2008 Jul 23
3
[patch] mount add move option
...gt; > > mount -o move /sys /root/sys > > > > > > this generates the following error on util-linux-ng mount: > > > mount: you must specify the filesystem type > > > > > > belows patch is enough to add an alternative to > > > mount --move /olddir /newdir > > > > Please don't. Overloading -o for bind mounts initially was a really bad > > idea already. -o should be reserved to filesystem options. > > Right. Unfortunately, we already have more exceptions ;-( > > -o {remount,bind,rbind,owner,noowner,grou...
2006 Jan 10
13
DO NOT REPLY [Bug 3392] New: fuzzy misbehaving if source is a file
https://bugzilla.samba.org/show_bug.cgi?id=3392 Summary: fuzzy misbehaving if source is a file Product: rsync Version: 2.6.6 Platform: All OS/Version: Linux Status: NEW Severity: normal Priority: P3 Component: core AssignedTo: wayned@samba.org ReportedBy: egmont@uhulinux.hu
2008 Jul 31
2
Logrotate is not happing without -f option
Dear All, Currently i am using CentOS 4.4 Linux Logrotate is not happen without -f option I have executed the following logrotate /etc/logrotate.conf manually and Logrotate command exit without any error messages If i executed with -f option then Logrotate will happen I am not sure why this is happening. Can some one throw light on this. Regards -S.Balaji
2005 Sep 27
1
--delete and --dirs
rsync-2.6.6 manpage says: --delete [...] This option has no effect unless directory recursion is enabled. True. In fact, I noted that --delete doesn't delete anything if --dirs is used rather than --recursive. Is there any reason for --delete not to delete when used with --dirs? Is there a way to get rsync to actually delete files on the receiving end when using