Shortcut to having to cppy/backup files all the time


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users Shortcut to having to cppy/backup files all the time
# 1  
Old 12-08-2009
Shortcut to having to cppy/backup files all the time

Hey guys,

if you've worked in the unix environment long enough, i'm sure you all have been faced with situations where you have to create a backup of a file before you edit it. now the problem arises when your job is mostly all about editing files.

how do you guys normally go about this. say on a daily basis you edit multiple files, more than once a day. meaning, each file gets editted at least twice in one day. obviously, having to "cp" each time you want to edit is a pain.

so what do you experts do to get around this?

thanks
# 2  
Old 12-08-2009
SkySmart.. hello
you can automate the job say once daily by a cron job.
Cron Daemon runs in the background and is basically used for backup. you can put the command say
Code:
find / -iname "*.txt* -print0 | xargs -0 cp /var/backup

as a cron job that executes and will backup all the text files(here I assume you want text files in to a temporary backup directory.
search the man page for cron and find. to look for more options that you may need.
Regards.
# 3  
Old 12-08-2009
Quote:
Originally Posted by gaurav1086
SkySmart.. hello
you can automate the job say once daily by a cron job.
Cron Daemon runs in the background and is basically used for backup. you can put the command say
Code:
find / -iname "*.txt* -print0 | xargs -0 cp /var/backup

as a cron job that executes and will backup all the text files(here I assume you want text files in to a temporary backup directory.
search the man page for cron and find. to look for more options that you may need.
Regards.


thanks a million for your response.
is there a much simpler way to this? something very straightforward doesn't need layers of work like cron, find. something that involves a little bit of set up at the beginning but never needs additional work from the point it was set up and working to the foreseeable future?
# 4  
Old 12-08-2009
hi.
Here are the ten of the best linux backup tools. you can read and deploy as all are free open-source and the most important of all trustable.
10 outstanding Linux backup utilities | 10 Things | TechRepublic.com
check the link. if you need help in configuring feel free to ask.
Regards.
Login or Register to Ask a Question

Previous Thread | Next Thread

8 More Discussions You Might Find Interesting

1. AIX

How to backup a directory (sub-directories/files) files from one server on to other ?

Hello, Server A: /directory1/ Server B: /Backups/ i wanted to backup contents of /directory1 from "server A" on to "Server B" every 1 hour. If there is any change in (only new/differences) contents on serverA (directory1/) supposed to be backeup on next run. I did used rsync command to... (5 Replies)
Discussion started by: System Admin 77
5 Replies

2. Shell Programming and Scripting

Copy real file from a shortcut preserving the time stamps and directory tree

I have directory with shorcuts of files. for example: gara@yn\short\name1 ( shortcut to gara@yn\FOLDER\OPT\GARA\1.jpg ) gara@yn\short\name2 ( shortcut to gara@yn\FOLDER\OPT\GARA\11.jpg ) gara@yn\short\name3 ( shortcut to gara@yn\MARA\URSA\2.jpg ) gara@yn\short\name4 ( shortcut to... (6 Replies)
Discussion started by: gogok_bg
6 Replies

3. Ubuntu

Avoid typing long filenames in terminal, shortcut for selecting files?

You probably know the answer to this, because I know it exists. I have super long filenames with md5 hashes and I sucks to type the whole hash in the console. Because... just because :P What is the shortcut for selecting a file in the current directory? Like you get a sort of loop through the... (1 Reply)
Discussion started by: hellfire1
1 Replies

4. Shell Programming and Scripting

rsync backup mode(--backup) Are there any options to remove backup folders on successful deployment?

Hi Everyone, we are running rsync with --backup mode, Are there any rsync options to remove backup folders on successful deployment? Thanks in adv. (0 Replies)
Discussion started by: MVEERA
0 Replies

5. AIX

Tape backup/restore Date/time

good morning everyone how can i find the tape backup/restore Date/time? (2 Replies)
Discussion started by: Portabello
2 Replies

6. UNIX for Dummies Questions & Answers

Real time status of tape drive loaded for backup

Do we have a way in solaris to actuallyu check in real time the activity of a tape when it is loaded for backup? I know mt -f /dev/rmt/0n stat will provide the status. If it's busy, meaning it's currrently on backup mode or someone is using it (fuser -u /dev/rmt/0n) I wanted to check if the... (3 Replies)
Discussion started by: lhareigh890
3 Replies

7. Shell Programming and Scripting

Reducing Backup Time

$ /backup_restore/backupDatabase -b 128 -s 45056000 -non-interactive The above command is usually ran through cron on a daily basis. However it takes 2hrs to complete. The tape is usually inserted into the V890 server, and cron kicks off the backup around 1:10AM. It completes around 3:30 -... (0 Replies)
Discussion started by: ravzter
0 Replies

8. UNIX for Dummies Questions & Answers

Backup Date & Time

:confused: I'm not really sure about the default backup date & time in our Unix system and I would like to change it to a convienient time...how do I do that? Please help? (1 Reply)
Discussion started by: EbeyeJJ
1 Replies
Login or Register to Ask a Question