Shirt Pocket Discussions  
    Home netTunes launchTunes SuperDuper! Buy Now Support Discussions About Shirt Pocket    

Go Back   Shirt Pocket Discussions > SuperDuper! > General

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 06-03-2009, 11:49 PM
mmurray mmurray is offline
Registered User
 
Join Date: Jun 2006
Posts: 25
Date stamp possible ?

This is probably a feature request but perhaps I am missing a trick for doing it. I would like SuperDuper to put a text file with the current date and time in it on the top directory of the copy it has made ? Is that possible ? I have a couple of backups running and it would be handy to know which was the most recent. Alternatively I guess the application itself could story a history and maybe even attach to each history entry the log file for that backup.

Thanks - Michael
Reply With Quote
  #2  
Old 06-04-2009, 07:01 AM
dnanian's Avatar
dnanian dnanian is offline
Administrator
 
Join Date: Apr 2001
Location: Weston, MA
Posts: 14,923
Send a message via AIM to dnanian
You can write a small shell script to do that kind of thing, Michael, and run it in the "After copy" section of the Advanced tab.
__________________
--Dave Nanian
Reply With Quote
  #3  
Old 06-04-2009, 07:10 AM
mmurray mmurray is offline
Registered User
 
Join Date: Jun 2006
Posts: 25
Quote:
Originally Posted by dnanian View Post
You can write a small shell script to do that kind of thing, Michael, and run it in the "After copy" section of the Advanced tab.
Ah thanks.

My scripting ability should just about run to that :-)

Regards - Michael
Reply With Quote
  #4  
Old 06-04-2009, 07:26 AM
mmurray mmurray is offline
Registered User
 
Join Date: Jun 2006
Posts: 25
Dave is there a way of referring to the target disk in the shell script that is being run after the copy ?

Thanks - Michael
Reply With Quote
  #5  
Old 06-04-2009, 07:38 AM
dnanian's Avatar
dnanian dnanian is offline
Administrator
 
Join Date: Apr 2001
Location: Weston, MA
Posts: 14,923
Send a message via AIM to dnanian
See the User's Guide, Michael - it explains what arguments are provided to the script.
__________________
--Dave Nanian
Reply With Quote
  #6  
Old 06-04-2009, 10:16 AM
mmurray mmurray is offline
Registered User
 
Join Date: Jun 2006
Posts: 25
Quote:
Originally Posted by dnanian View Post
See the User's Guide, Michael - it explains what arguments are provided to the script.
Thanks. OK the script below seems to work (well once):

Quote:
#! /bin/tcsh -f
#

set target="$4"
set dsfile="$target/DateStamp.txt"
echo "Latest clone was done on `date` " > "${dsfile}"
You end up with a text file called DateStamp on the top level of the volume you are cloning to. In that file is the time of the latest clone in the form:

Quote:
Latest clone was done on Thu Jun 4 23:31:39 CST 2009
Thanks again Dave.

Regards - Michael

PS: Anyone borrowing this script should note that the phrase `a little knowledge is a dangerous thing' was invented in honour of my programming ability :-)
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Root folder creation date mschmitt General 3 05-10-2009 05:41 PM
No date in "Last Copy" column dlt4 General 15 02-09-2009 10:17 PM
Drive's "Modified" date not updated by backup? RobS General 4 09-16-2008 11:29 AM
root creation date glitch? ncmphoto General 3 04-24-2007 02:38 PM
Sparseimage date anomaly; Do sleeping Macs work? & UI suggestions DrDan in MA General 3 02-11-2006 07:03 PM


All times are GMT -4. The time now is 04:48 AM.


Powered by vBulletin® Version 3.8.9
Copyright ©2000 - 2024, vBulletin Solutions, Inc.