0

os: ubuntu 12.04 LTS,
kernel: 3.8.0-35-generic kernel,

when i right click on "text file/s", i would like to have a custom menu, to run a bash, to make a backup copy of text file/s i'm right clicking on.

suppose i right click on the following three files:

/home/user_name/folder/file_1
/home/user_name/folder/file_2.c
/home/user_name/folder/file_3.sh

suppose time stamp is 2013/12/31 23:59:59

i would like to have the following:

/home/user_name/folder/20131231_235959/file_1.bak
/home/user_name/folder/20131231_235959/file_2.c.bak
/home/user_name/folder/20131231_235959/file_3.sh.bak

how do i make this little toy? any help?

zemburak
  • 76
  • 5
user247117
  • 13
  • 8

1 Answers1

0

You could easily achieve this using Thunar and its Edit > Configure custom actions. See official documentation on how to do this.

This said, I would advise against such setups. More efficient is to use an automatic backup and synchronization utility such as SpiderOak, which automatically backups the selected file and keeps a history of all historic changes. See Comparison of backup tools.

landroni
  • 5,941
  • 7
  • 36
  • 58