LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-21-2010, 11:33 AM   #1
karan_bagaria
LQ Newbie
 
Registered: Oct 2009
Posts: 2

Rep: Reputation: 0
how can i move to previous system date using command line


I want to know the command, so that i can move back two days i.e. all the changes i made during the two day is rolled back .
 
Old 09-21-2010, 11:39 AM   #2
vinaytp
Member
 
Registered: Apr 2009
Location: Bengaluru, India
Distribution: RHEL 5.4, 6.0, Ubuntu 10.04
Posts: 704

Rep: Reputation: 55
Quote:
Originally Posted by karan_bagaria View Post
I want to know the command, so that i can move back two days i.e. all the changes i made during the two day is rolled back .
As far as I know there no command as such to rollback. If you have backups they may come to your rescue.

Else you may have a look at following softwares, which may come to your rescue.

TestDisk
PhotoRec
 
Old 09-21-2010, 12:07 PM   #3
CincinnatiKid
Member
 
Registered: Jul 2010
Posts: 431

Rep: Reputation: 33
Quote:
Originally Posted by karan_bagaria View Post
I want to know the command, so that i can move back two days i.e. all the changes i made during the two day is rolled back .
Are you having a specific issue? Did something break in the last couple of days? Did you loose data? Maybe if you post your issue, we can help you out.
 
Old 09-22-2010, 12:55 AM   #4
karan_bagaria
LQ Newbie
 
Registered: Oct 2009
Posts: 2

Original Poster
Rep: Reputation: 0
I have once done the rollback i.e. move to a previous state of two days back but i dont exactly remember the command hence was trying to know what exactly the command was .
 
Old 09-22-2010, 01:11 AM   #5
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,066
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
Roll-back of what?
 
Old 09-22-2010, 05:01 PM   #6
theNbomr
LQ 5k Club
 
Registered: Aug 2005
Distribution: OpenSuse, Fedora, Redhat, Debian
Posts: 5,396
Blog Entries: 2

Rep: Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908
Just some thoughts...
Some (many/most/all?) virtual hosting systems allow you to take snapshots at periodic intervals, and provide the capability to roll back to one of them as required.
Otherwise, you would have to rely on system backups. If the domain within which you are working is limited to a small-ish set of files, then periodic backups can be more frequent.
Software developers use revision control systems that allow you to recover selected versions of files. Those require deliberate committal to the revision control system at appropriate intervals, and are best for text files.

--- rod.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
In Solaris(command Line ), How to get the previous commands? kcarun Solaris / OpenSolaris 22 10-19-2012 04:49 AM
[SOLVED] Modify date command to show previous year when performing December backups in January No_one_knows_me Linux - Newbie 2 01-26-2010 09:14 AM
Unix command to delete the previous and next line of the searched pattern navin29 Linux - Newbie 7 03-14-2008 02:23 PM
date command getting previous day swinchen Programming 6 08-23-2004 01:17 PM
Syntax for setting up the date via Command line. Lespuff Linux - Newbie 1 11-20-2003 08:35 PM


All times are GMT -5. The time now is 04:08 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration