Displaying 4 results from an estimated 4 matches for "timenow".
Did you mean:
timenew
2016 Jun 19
5
rsync script for snapshot backups
...skills. This is what i came up with:
#!/bin/sh
# rsync copy script for rsync pull from FreeNAS to BackupNAS for Buero
dataset
# Set variables
EXPIRED=`date +"%d-%m-%Y" -d "14 days ago"`
# Copy previous timefile to timeold.txt if it exists
if [ -f "/volume1/rsync/Buero/timenow.txt" ]
then
yes | cp /volume1/rsync/Buero/timenow.txt
/volume1/rsync/Buero/timeold.txt
fi
# Create current timefile
echo `date +"%d-%m-%Y-%H%M"` > /volume1/rsync/Buero/timenow.txt
# rsync command
if [ -f "/volume1/rsync/Buero/timeold.txt" ]
then
rsync -aq...
2007 Sep 14
1
Cached function values?
Hello:
I think I noticed that functions appear to be cached:
$r = function(args)
will return the same whenever args is the same.
I worked around this by doing:
$f = function(args,timenow())
Is there a more elegant workaround possible?
Brad
2012 Mar 25
2
build postfix rpm with mysql
...& {
%whinge "Adding postfix user to mail group"
%{_sbindir}/usermod -G mail postfix
}
# check for a new install and see if a non package installed Postfix might
# exist. Attempt to avoid overwriting the source config and provide a warning.
if [ "$1" = 0 ]; then
timenow=$(date +%Y%m%d-%H%M%)
pretext="This is a new Postfix RPM installation"
[ -f %{_sysconfdir}/postfix ] && {
[ -n "$pretext" ] && %whinge "$pretext" && pretext=
%whinge "Detected a possible previous non-RPM install in
%...
2011 Nov 19
4
build postfix spec w/ mysql
...& {
%whinge "Adding postfix user to mail group"
%{_sbindir}/usermod -G mail postfix
}
# check for a new install and see if a non package installed Postfix might
# exist. Attempt to avoid overwriting the source config and provide a warning.
if [ "$1" = 0 ]; then
timenow=$(date +%Y%m%d-%H%M%)
pretext="This is a new Postfix RPM installation"
[ -f %{_sysconfdir}/postfix ] && {
[ -n "$pretext" ] && %whinge "$pretext" && pretext=
%whinge "Detected a possible previous non-RPM install in %...