search for: cnewer

Displaying 4 results from an estimated 4 matches for "cnewer".

Did you mean: newer
2010 Jan 26
10
Detect file change
Hello everyone! How can I detect if a folder have changed (sync logic) than run a script if it's true? I found this script over the net, but I think it's such complicated for that simple thing... #!/bin/bash ############### detectdir.sh by Jagbir Singh ################# # # script to detect changes in directory. #
2001 Oct 24
1
Generating cpio list.
One of the things I want to do besides mirror a hard drive is maintain an incremental backup on tape. The way for me to do this ( of course ) is to take the output of rsync and use it to generate a list of files for cpio. The basic ideal is something like this declare -i head tail # gets the first line with total: at the begining head=$(grep -n ^total: $log_rsync|awk -F: '{print $1}')
2002 Jan 31
1
Files getting excluded.. don't understand why?
...WWWLIST=localhost if [ -f $LOCKFILE ]; then exit else touch $LOCKFILE fi # create copy list rm -f $TOCOPY for dir in $DIRLIST; do cd $dir # find files newer than $LASTRUN if [ -f $LASTRUN ]; then find ./ \! -regex '\./logs.*' -cnewer $LASTRUN -print > $TOCOPY else find ./ \! -regex '\./logs.*' -print > $TOCOPY fi # update $LASTRUN touch $LASTRUN # grab any files added VERY recently find ./ \! -regex '\./logs.*' -cnewer $LASTRUN -prin...
2013 Jul 18
2
Puppetlabs Apt module: dependency cycle
...rom https://blog.kumina.nl/2010/11/puppet-tipstricks-running-apt-get-update-only-when-needed/ exec { "apt-get update": command => "/usr/bin/apt-get update", onlyif => "/bin/sh -c ''[ ! -f /var/cache/apt/pkgcache.bin ] || /usr/bin/find /etc/apt/* -cnewer /var/cache/apt/pkgcache.bin | /bin/grep . > /dev/null''", } package { ["build-essential","apache2","git","python","python-dev","python-setuptools", "python-pip"]: ensure => present, r...