Re: Auto save for .txt files

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Parshwa Murdia wrote:
> hi,
> Is there any way to have auto save option for .txt files in Fedora.
> Means, if we write something, in some seconds (fixed, e.g., 10 secs)
> that after which it automatically saves the name.txt files while
> creating any new file in Fedora.

Just keep in mind that a file, if open, may be in some state only a mother could 
love. You really have to be selective about saving open files, or eventually you 
will save a file which is not in a useful state.

That said, you can find files modified since the last save and save them with 
whatever means you wish, such as rsync.

This is an example, remember I just made it up:
  touch next-save
  find . -name *.txt -mnewer last-save -mmin +10 >save-list
  rsync -a --files-from=save-list DESTINATION &&
  mv next-save last-save

Save files modified since the previous save, but untouched for ten minutes, 
since that improves your chance that the file is in a useful state, retry until 
the backup succeeds.

Run that as a script every hour or so.

NOTE: this is one of dozens of solutions, unless the data in the files is vastly 
valuable I'd just back them all up once a day. That's me, the cost of backup 
should not be greater than the cost of recreation.

-- 
Bill Davidsen <davidsen@xxxxxxx>
   "We have more to fear from the bungling of the incompetent than from
the machinations of the wicked."  - from Slashdot
-- 
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines

[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux