Creating minute/hourly/daily/weekly backups.

Page 1 of 2 12 LastLast
Results 1 to 15 of 23
  1. #1
    MentaL's Slave Keith is offline
    LegendRank
    Nov 2004 Join Date
    2,671Posts

    Creating minute/hourly/daily/weekly backups.

    You gotta create a Job for MSSQL, but If you know how to do that, and If you don't google it


    DECLARE @DATE varchar(100),
    @Filelocation varchar(50)



    SET @DATE = DATENAME(MONTH,GETDATE()) + '_' + DATENAME(DAY,GETDATE()) + '_' + DATENAME(YYYY,GETDATE()) + '_' + DATENAME(HOUR,GETDATE()) + '_' + DATENAME(MINUTE,GETDATE()) + '_' + DATENAME(SECOND,GETDATE())
    SET @FileLocation = 'C:\GunZ\Database\GunZ_'+ @DATE + '_.bak'

    BACKUP DATABASE YOURDATABASENAME
    TO DISK = @FileLocation
    WITH INIT,
    STATS
    Change YOURDATABASENAME with your databases name
    and the File location to where gunz is

    Screen:


    Credits: me, and google.


    Creating a job

    http://forum.ragezone.com/f245/how-t...1/#post4901822

    Credits to the post creator.
    Last edited by Keith; 20-04-09 at 10:32 AM.


  2. #2
    人◕ ‿‿ ◕人 Forean is offline
    MemberRank
    Jul 2008 Join Date
    1,183Posts

    Re: Creating minute/hourly/daily/weekly backups.

    Wow THANK YOU this will provide Easyer Backups =]

  3. #3
    Music<3 Katsuro is offline
    MemberRank
    Oct 2006 Join Date
    Kailua-Kona, HILocation
    1,051Posts

    Re: Creating minute/hourly/daily/weekly backups.

    This is quite a nice help to many servers. Especially when they get there Database hacked often.

  4. #4
    I am THE DON Joe9099 is offline
    MemberRank
    Jan 2007 Join Date
    England, UkLocation
    3,655Posts

    Re: Creating minute/hourly/daily/weekly backups.

    Yeh its nice if you have a shit load of hard drive space.

    Doing this by minutes would seriously skank your space

  5. #5
    MentaL's Slave Keith is offline
    LegendRank
    Nov 2004 Join Date
    2,671Posts

    Re: Creating minute/hourly/daily/weekly backups.

    Quote Originally Posted by Joe9099 View Post
    Yeh its nice if you have a shit load of hard drive space.

    Doing this by minutes would seriously skank your space
    You can set the time in the jobs, in MSSQL. Thats just a example screen shot.

  6. #6
    I am THE DON Joe9099 is offline
    MemberRank
    Jan 2007 Join Date
    England, UkLocation
    3,655Posts

    Re: Creating minute/hourly/daily/weekly backups.

    Yeh i know, but if i used this, with my vps i would probably go weekly, but yeh good job

  7. #7
    人◕ ‿‿ ◕人 Forean is offline
    MemberRank
    Jul 2008 Join Date
    1,183Posts

    Re: Creating minute/hourly/daily/weekly backups.

    that would be cool if you could make it do daily, but insted of keeping all why not make it only make 5 and everyone new one it erases the oldest one.

    \

  8. #8
    Proficient Member Projectix is offline
    MemberRank
    May 2008 Join Date
    165Posts

    Re: Creating minute/hourly/daily/weekly backups.

    Good job, this is a nice TuT.

  9. #9
    MentaL's Slave Keith is offline
    LegendRank
    Nov 2004 Join Date
    2,671Posts

    Re: Creating minute/hourly/daily/weekly backups.

    Quote Originally Posted by forean View Post
    that would be cool if you could make it do daily, but insted of keeping all why not make it only make 5 and everyone new one it erases the oldest one.

    \
    I can't do that from MSSQL I think.

  10. #10
    Member [+]Daniel is offline
    MemberRank
    Mar 2009 Join Date
    62Posts

    Re: Creating minute/hourly/daily/weekly backups.

    Thanks Keith, very helpful ;D

  11. #11
    Sultan of Yolo Demantor is offline
    MemberRank
    May 2008 Join Date
    GermanyLocation
    1,266Posts

    Re: Creating minute/hourly/daily/weekly backups.

    Useful, thankx ^^

  12. #12
    Account Upgraded | Title Enabled! CrashPoint is offline
    MemberRank
    Sep 2008 Join Date
    VietNamLocation
    706Posts

    Re: Creating minute/hourly/daily/weekly backups.

    good release :) there r som useful softs for backin up out there for lazy ppls :D but u hav to buy them -__-

    P/S: How u gonna backup an 6Gb+ Database everymin ? lol

  13. #13
    Account Upgraded | Title Enabled! cerealnp is offline
    MemberRank
    Apr 2006 Join Date
    BrazilLocation
    441Posts

    Re: Creating minute/hourly/daily/weekly backups.

    Interesting, good to see you back on Gunz Section =P

  14. #14
    Account Upgraded | Title Enabled! Torrentspy is offline
    MemberRank
    Sep 2008 Join Date
    256Posts

    Re: Creating minute/hourly/daily/weekly backups.

    sry but how to use this? put the code in .php then direct browser to it?

  15. #15

    Re: Creating minute/hourly/daily/weekly backups.

    No. It automatically programs by itself.



Page 1 of 2 12 LastLast

Advertisement