Posted: Sat 10 Mar 2012, 20:05 Post subject:
Bash - #!/bin/sh - #!/bin/bash
I want to make backups of favorite directories and did wrote a little GUI application that does it. Now i want to make the program not to overwrite existing backups - so i want to add date and time to the file names.
How do i grep, sed or whatever needed date and time out, into a format (variable etc) that i can add easily onto a path-/file name?
the problem with using current date and time is that you may end up backing up files that are already backed up... so you end up with 1000s of copies of the same picture of a funny cat with different date stamps. _________________ Puppy Web Desktop Now with pet packages - Pet Packaging 100 & 101
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum