LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Is this possible or am I tripping again? (https://www.linuxquestions.org/questions/linux-newbie-8/is-this-possible-or-am-i-tripping-again-727009/)

linus72 05-19-2009 06:46 AM

Is this possible or am I tripping again?
 
Mornin, banging some Slayer, slurping coffee, and it's already 4:21! and now I got a dumb question...

I write alot of fiction, etc and sometimes, like an idiot, I write something while I'm grooving on Ubuntu, then later I may switch to Slack and write something else.
Well, somehow I lost a nice story on Ubuntu-either deleted it or I don't know, but it's gone.

My question is complicated- Is it possible to have a Central BackUp folder; so that whenever I create ANY text file in any directory (home, Desktop,etc) it "automagically" creates a backup in this folder?
Not across partitions, but within it's partition?

So, I'm in Ubuntu, at the desktop, I open Gedit and start cranking out some prose, when done I save it to the Desktop and a backup gets sent to
CentralBackup folder automatically.
Can that be done no matter where I tell it to save to-it creates a second one and puts it in the backup folder-you dig?
Thanks and Positive Waves Man

arckane 05-19-2009 07:13 AM

Best option would be to rsync your home folder via cron on a 10 minute cycle or something like that, IMO. Either that or script something to look for new files and put a copy in this specified directory and also call that from cron.

I've not seen anything else that can ghost copy the way you are asking.

sycamorex 05-19-2009 07:13 AM

Why don't you have a separate partition for your data (including your writings)mounted under both distros? IMO it's much more handy. Then you could create a cron job and to check the contents of your writings directory every 10 minutes and synchronise it with a separate backup directory using eg. rsync. There might be better solutions, though:)

repo 05-19-2009 07:18 AM

Normally Gedit creates a backupfile (filename~) if you edit a file that already exist.
In the preferences you can set to create a backup of the file you are using, every x minutes.

However, you can create a cronjob, to backup certain files

farslayer 05-19-2009 07:25 AM

Flyback or timevault can simplify configuring a backup of your data.. uses rsync and standard tools to take data snapshots of your system.

http://flyback-project.org/
https://wiki.ubuntu.com/TimeVault
http://blog.interlinked.org/tutorial...e_machine.html

linus72 05-19-2009 07:32 AM

Awesome-I knew you guys would know!

Now, what is "cron" and "rsync"? ( I am a newbie guys )
and thanks alot too.

repo 05-19-2009 07:34 AM

Quote:

Now, what is "cron" and "rsync"? ( I am a newbie guys )
Ever tried google ?


All times are GMT -5. The time now is 03:17 PM.