Unfortunately no one can be told what fun_plug is - you have to see it for yourself.
You are not logged in.
I have my DNS 323 downloading a backup of one of my websites each night. The file is always named the same thing.
So every night, the previous backup is written over because of the same name.
Is there a way to dynamically change the save name so when it downloads it does not do write over the previous download?
Offline
mv download.backup "`date`".backup
Offline
Thank you. Where does this go?
Mijzelf wrote:
Code:
mv download.backup "`date`".backup
Offline
ameyer wrote:
Thank you. Where does this go?
Mijzelf wrote:
Code:
mv download.backup "`date`".backup
If you're using the built-in from-web-interface schedule download the answer is: It doesn't.
You can install fonz' fun plug and write scripts to do this pretty much whichever you'd like. But you'll, probably need to learn some linux skills.
Mijzelf's answer is a command you can issue to change your backup's name to the current date. But as I wrote, it'll require some work and linux know-how.
Offline
Makes sense. I figured the download schedule would create a cron job, I was just hoping that I would be able to ssh into the device and just edit it.
Thanks.
Offline
I haven't used that feature but what you write make sense. There is, however, a little caveat: All those settings are stored in NVRAM. At runtime, it's loaded into memory and resides in a RAMDISK. You can easily edit files on the RAMDISK, but after reboot you'll have to re-edit them.
If you install ffp. it's just as easy to create a script that adds a a cron job that does whatever you wish it to do.
Offline
Awesome. Now if I could get it to take the fun_plug files I would be all set (RAID 1 so I have no volume2 to try )it just wont unpack them no matter ho much I restart.
scaramanga wrote:
I haven't used that feature but what you write make sense. There is, however, a little caveat: All those settings are stored in NVRAM. At runtime, it's loaded into memory and resides in a RAMDISK. You can easily edit files on the RAMDISK, but after reboot you'll have to re-edit them.
If you install ffp. it's just as easy to create a script that adds a a cron job that does whatever you wish it to do.
Offline
Got it all installed. And Im SSHing in!
So I created a script
#!/bin/bash FILE=$1 NOW="`date +%b-%d-%y`" cp $FILE "$NOW.$FILE" echo "File $FILE == $NOW.$FILE"
but when I run it using ./script.sh file.txt I get -sh: ./renameToDate.sh: not found
I tested this same script locally and it works.
Any ideas?
Last edited by ameyer (2010-08-27 15:37:46)
Offline
Nevermind
No bash
#!/ffp/bin/sh FILE=$1 NOW="`date +%b-%d-%y`" mv $FILE "$NOW.$FILE" echo "File $FILE == $NOW.$FILE"
Offline