Home » Language IDEs » C / C++ IDE (CDT) » Makefile :: Auto Backup
| Makefile :: Auto Backup [message #75134] |
Mon, 07 July 2003 01:20  |
Eclipse User |
|
|
|
Originally posted by: ashes999.rogers.com
I've figured out a way to auto-backup files: I inserted a category (sorry,
don't know the lingo) into my makefile to execute winrar and rar up my
directory into a file called Backup.rar. Code:
build:
rar a -r Backup.rar
However...I want to somehow append a number, a variable number, to the end
of the filename each time it compiles. So, the first time I compile, it
would be backup001.rar. The next time, backup002.rar, and so on. Anybody
know how to do this?
--Ashiq
|
|
| |
| Re: Makefile :: Auto Backup [message #75172 is a reply to message #75134] |
Mon, 07 July 2003 06:04   |
Eclipse User |
|
|
|
Ashiq Alibhai wrote:
> I've figured out a way to auto-backup files: I inserted a category (sorry,
> don't know the lingo) into my makefile to execute winrar and rar up my
> directory into a file called Backup.rar. Code:
>
> build:
> rar a -r Backup.rar
>
> However...I want to somehow append a number, a variable number, to the end
> of the filename each time it compiles. So, the first time I compile, it
> would be backup001.rar. The next time, backup002.rar, and so on. Anybody
> know how to do this?
>
> --Ashiq
Let me ask you, if it wouldn't be better using either local history of
Eclipse, or CVS to backup your work. Though, you can more easliy switch
back to older versions and you wont have x-times the almost the same files
laying around in your backup with no info, what you did within.
Just some thought
H.Riedel
|
|
|
| Re: Makefile :: Auto Backup [message #75241 is a reply to message #75172] |
Mon, 07 July 2003 18:18   |
Eclipse User |
|
|
|
Originally posted by: ashes999.rogers.com
D'ARGH! I never knew Winrar had a -ag option. That does exactly what I
want. A shame I had to build a C project to extract the date and time and
pass it to winrar. Oh well.
As for eclipse...it has limited days (not so bad), but, limited entries per
file? That kind of sucks...I think I'll stick with a manual backup in my
Makefile, so I can just launch it whenever.
--Ashiq
"Henning Riedel" <kesselhaus@gmx.net> wrote in message
news:bebghr$5j4$1@eclipse.org...
> Ashiq Alibhai wrote:
>
> > I've figured out a way to auto-backup files: I inserted a category
(sorry,
> > don't know the lingo) into my makefile to execute winrar and rar up my
> > directory into a file called Backup.rar. Code:
> >
> > build:
> > rar a -r Backup.rar
> >
> > However...I want to somehow append a number, a variable number, to the
end
> > of the filename each time it compiles. So, the first time I compile, it
> > would be backup001.rar. The next time, backup002.rar, and so on.
Anybody
> > know how to do this?
> >
> > --Ashiq
>
> Let me ask you, if it wouldn't be better using either local history of
> Eclipse, or CVS to backup your work. Though, you can more easliy switch
> back to older versions and you wont have x-times the almost the same files
> laying around in your backup with no info, what you did within.
>
> Just some thought
> H.Riedel
|
|
|
| Re: Makefile :: Auto Backup [message #75289 is a reply to message #75241] |
Tue, 08 July 2003 02:28   |
Eclipse User |
|
|
|
Originally posted by: johan.nosp.m.appeal.se
You are re-inventing version control. If version control is what you want,
using CVS is probably a lot better (and obviously more space-efficient in case
that matters) than your home-grown-in-a-day solution.
Just my 2 öre.
Cheers //Johan
Ashiq Alibhai wrote:
> D'ARGH! I never knew Winrar had a -ag option. That does exactly what I
> want. A shame I had to build a C project to extract the date and time and
> pass it to winrar. Oh well.
>
> As for eclipse...it has limited days (not so bad), but, limited entries per
> file? That kind of sucks...I think I'll stick with a manual backup in my
> Makefile, so I can just launch it whenever.
>
> --Ashiq
>
> "Henning Riedel" <kesselhaus@gmx.net> wrote in message
> news:bebghr$5j4$1@eclipse.org...
>
>>Ashiq Alibhai wrote:
>>
>>
>>>I've figured out a way to auto-backup files: I inserted a category
>
> (sorry,
>
>>>don't know the lingo) into my makefile to execute winrar and rar up my
>>>directory into a file called Backup.rar. Code:
>>>
>>>build:
>>> rar a -r Backup.rar
>>>
>>>However...I want to somehow append a number, a variable number, to the
>
> end
>
>>>of the filename each time it compiles. So, the first time I compile, it
>>>would be backup001.rar. The next time, backup002.rar, and so on.
>
> Anybody
>
>>>know how to do this?
>>>
>>>--Ashiq
>>
>>Let me ask you, if it wouldn't be better using either local history of
>>Eclipse, or CVS to backup your work. Though, you can more easliy switch
>>back to older versions and you wont have x-times the almost the same files
>>laying around in your backup with no info, what you did within.
>>
>>Just some thought
>>H.Riedel
>
>
>
|
|
| |
| Re: Makefile :: Auto Backup [message #75560 is a reply to message #75528] |
Mon, 14 July 2003 02:45   |
Eclipse User |
|
|
|
Originally posted by: johan.nosp.m.appeal.se
Should you change your mind, here are some pointers:
CVS according to "cvshome.org":
"
CVS is the Concurrent Versions System, the dominant open-source
network-transparent version control system. CVS is useful for everyone from
individual developers to large, distributed teams
"
Version control according to a random page found by googling for it
(" http://www.hta-bi.bfh.ch/Resources/Computing/SunGroup/Info/F AQ/VersionControl/"):
"
By using a version control system, you can record the history of your source
files. This allows you to go back to an older version of your source files, and
to monitor who changed what when.
"
Since you seem to be running on Windows (right?), you should be able to use
CVSNT as a server, get it from "www.cvsnt.org". Note that I haven't ever used
any windows port of the CVS server, so I can't say anything about how well it works.
Eclipse's CVS support is documented at
" http://dev.eclipse.org/viewcvs/index.cgi/~checkout~/platform -vcm-home/docs/online/cvs_features2.0/cvs-faq.html".
Cheers //Johan
Ashiq Alibhai wrote:
> You have a good point there...
> ...but I like hard-copy backups, too. Plus I don't even know what CVS is,
> and apprently, I need my own CVS server or something...I can't be bothered.
> This way is more fun :)
>
> --Ashiq
>
> "Johan Walles" <johan.nosp@m.appeal.se> wrote in message
> news:bedoak$80e$1@eclipse.org...
> You are re-inventing version control. If version control is what you want,
> using CVS is probably a lot better (and obviously more space-efficient in
> case
> that matters) than your home-grown-in-a-day solution.
>
> Just my 2 öre.
>
> Cheers //Johan
>
> Ashiq Alibhai wrote:
>
>>D'ARGH! I never knew Winrar had a -ag option. That does exactly what I
>>want. A shame I had to build a C project to extract the date and time and
>>pass it to winrar. Oh well.
>>
>>As for eclipse...it has limited days (not so bad), but, limited entries
>
> per
>
>>file? That kind of sucks...I think I'll stick with a manual backup in my
>>Makefile, so I can just launch it whenever.
>>
>>--Ashiq
>>
>>"Henning Riedel" <kesselhaus@gmx.net> wrote in message
>>news:bebghr$5j4$1@eclipse.org...
>>
>>
>>>Ashiq Alibhai wrote:
>>>
>>>
>>>
>>>>I've figured out a way to auto-backup files: I inserted a category
>>
>>(sorry,
>>
>>
>>>>don't know the lingo) into my makefile to execute winrar and rar up my
>>>>directory into a file called Backup.rar. Code:
>>>>
>>>>build:
>>>> rar a -r Backup.rar
>>>>
>>>>However...I want to somehow append a number, a variable number, to the
>>
>>end
>>
>>
>>>>of the filename each time it compiles. So, the first time I compile, it
>>>>would be backup001.rar. The next time, backup002.rar, and so on.
>>
>>Anybody
>>
>>
>>>>know how to do this?
>>>>
>>>>--Ashiq
>>>
>>>Let me ask you, if it wouldn't be better using either local history of
>>>Eclipse, or CVS to backup your work. Though, you can more easliy switch
>>>back to older versions and you wont have x-times the almost the same files
>>>laying around in your backup with no info, what you did within.
>>>
>>>Just some thought
>>>H.Riedel
>>
>>
>>
>
>
|
|
|
| Re: Makefile :: Auto Backup [message #76032 is a reply to message #75560] |
Wed, 16 July 2003 15:26  |
Eclipse User |
|
|
|
Originally posted by: ashes999.rogers.com
Hmm, thanks. Definitely sounds like it's worth a look..since I need to
learn it sooner or later anyway for school...
--Ashiq
"Johan Walles" <johan.nosp@m.appeal.se> wrote in message
news:betji3$651$1@eclipse.org...
Should you change your mind, here are some pointers:
CVS according to "cvshome.org":
"
CVS is the Concurrent Versions System, the dominant open-source
network-transparent version control system. CVS is useful for everyone from
individual developers to large, distributed teams
"
Version control according to a random page found by googling for it
(" http://www.hta-bi.bfh.ch/Resources/Computing/SunGroup/Info/F AQ/VersionCont
rol/"):
"
By using a version control system, you can record the history of your source
files. This allows you to go back to an older version of your source files,
and
to monitor who changed what when.
"
Since you seem to be running on Windows (right?), you should be able to use
CVSNT as a server, get it from "www.cvsnt.org". Note that I haven't ever
used
any windows port of the CVS server, so I can't say anything about how well
it works.
Eclipse's CVS support is documented at
" http://dev.eclipse.org/viewcvs/index.cgi/~checkout~/platform -vcm-home/docs/
online/cvs_features2.0/cvs-faq.html".
Cheers //Johan
Ashiq Alibhai wrote:
> You have a good point there...
> ...but I like hard-copy backups, too. Plus I don't even know what CVS is,
> and apprently, I need my own CVS server or something...I can't be
bothered.
> This way is more fun :)
>
> --Ashiq
>
> "Johan Walles" <johan.nosp@m.appeal.se> wrote in message
> news:bedoak$80e$1@eclipse.org...
> You are re-inventing version control. If version control is what you
want,
> using CVS is probably a lot better (and obviously more space-efficient in
> case
> that matters) than your home-grown-in-a-day solution.
>
> Just my 2
|
|
|
Goto Forum:
Current Time: Sat Nov 01 18:03:42 EDT 2025
Powered by FUDForum. Page generated in 0.05683 seconds
|