Ubuntu server back to a couple of days ago











up vote
1
down vote

favorite












I am having trouble with my linux server. Yesterday I created a lot of directories and files that i no longer want/need. Is there a way to restore my system back to how it was a couple of days ago?
Thanks in advance.










share|improve this question




















  • 1




    Not generally. Have you got any backup from that time?
    – Melebius
    Nov 22 at 8:48










  • No. I think i have learnt my lesson with this one. I didn't think i needed it as i have just started and experimenting with Ubuntu server. But i went to far to just reinstall the OS. Going to make automatic backups from now on.
    – Isaac
    Nov 22 at 12:43






  • 1




    If what you created (directories and files) were not in a system directory; you could always find -delete them (where you use a -mtime possibly to limit the results to the last 24 (48, 72) hours. Use the find firstly to verify the results, then add the -delete to actually delete what it found. This is a rough idea (the find could also match some system files, logs etc that were modified in that time period, why I mentioned the non-system-directory at the start; though this too could possibly be worked around).
    – guiverc
    Nov 22 at 12:48










  • Thank you for the suggestion. I am going to give that a try. I take it that you can select from the list which ones you can delete.
    – Isaac
    Nov 22 at 12:51















up vote
1
down vote

favorite












I am having trouble with my linux server. Yesterday I created a lot of directories and files that i no longer want/need. Is there a way to restore my system back to how it was a couple of days ago?
Thanks in advance.










share|improve this question




















  • 1




    Not generally. Have you got any backup from that time?
    – Melebius
    Nov 22 at 8:48










  • No. I think i have learnt my lesson with this one. I didn't think i needed it as i have just started and experimenting with Ubuntu server. But i went to far to just reinstall the OS. Going to make automatic backups from now on.
    – Isaac
    Nov 22 at 12:43






  • 1




    If what you created (directories and files) were not in a system directory; you could always find -delete them (where you use a -mtime possibly to limit the results to the last 24 (48, 72) hours. Use the find firstly to verify the results, then add the -delete to actually delete what it found. This is a rough idea (the find could also match some system files, logs etc that were modified in that time period, why I mentioned the non-system-directory at the start; though this too could possibly be worked around).
    – guiverc
    Nov 22 at 12:48










  • Thank you for the suggestion. I am going to give that a try. I take it that you can select from the list which ones you can delete.
    – Isaac
    Nov 22 at 12:51













up vote
1
down vote

favorite









up vote
1
down vote

favorite











I am having trouble with my linux server. Yesterday I created a lot of directories and files that i no longer want/need. Is there a way to restore my system back to how it was a couple of days ago?
Thanks in advance.










share|improve this question















I am having trouble with my linux server. Yesterday I created a lot of directories and files that i no longer want/need. Is there a way to restore my system back to how it was a couple of days ago?
Thanks in advance.







server 18.04 backup






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Nov 22 at 9:15









pa4080

13.1k52460




13.1k52460










asked Nov 22 at 7:57









Isaac

83




83








  • 1




    Not generally. Have you got any backup from that time?
    – Melebius
    Nov 22 at 8:48










  • No. I think i have learnt my lesson with this one. I didn't think i needed it as i have just started and experimenting with Ubuntu server. But i went to far to just reinstall the OS. Going to make automatic backups from now on.
    – Isaac
    Nov 22 at 12:43






  • 1




    If what you created (directories and files) were not in a system directory; you could always find -delete them (where you use a -mtime possibly to limit the results to the last 24 (48, 72) hours. Use the find firstly to verify the results, then add the -delete to actually delete what it found. This is a rough idea (the find could also match some system files, logs etc that were modified in that time period, why I mentioned the non-system-directory at the start; though this too could possibly be worked around).
    – guiverc
    Nov 22 at 12:48










  • Thank you for the suggestion. I am going to give that a try. I take it that you can select from the list which ones you can delete.
    – Isaac
    Nov 22 at 12:51














  • 1




    Not generally. Have you got any backup from that time?
    – Melebius
    Nov 22 at 8:48










  • No. I think i have learnt my lesson with this one. I didn't think i needed it as i have just started and experimenting with Ubuntu server. But i went to far to just reinstall the OS. Going to make automatic backups from now on.
    – Isaac
    Nov 22 at 12:43






  • 1




    If what you created (directories and files) were not in a system directory; you could always find -delete them (where you use a -mtime possibly to limit the results to the last 24 (48, 72) hours. Use the find firstly to verify the results, then add the -delete to actually delete what it found. This is a rough idea (the find could also match some system files, logs etc that were modified in that time period, why I mentioned the non-system-directory at the start; though this too could possibly be worked around).
    – guiverc
    Nov 22 at 12:48










  • Thank you for the suggestion. I am going to give that a try. I take it that you can select from the list which ones you can delete.
    – Isaac
    Nov 22 at 12:51








1




1




Not generally. Have you got any backup from that time?
– Melebius
Nov 22 at 8:48




Not generally. Have you got any backup from that time?
– Melebius
Nov 22 at 8:48












No. I think i have learnt my lesson with this one. I didn't think i needed it as i have just started and experimenting with Ubuntu server. But i went to far to just reinstall the OS. Going to make automatic backups from now on.
– Isaac
Nov 22 at 12:43




No. I think i have learnt my lesson with this one. I didn't think i needed it as i have just started and experimenting with Ubuntu server. But i went to far to just reinstall the OS. Going to make automatic backups from now on.
– Isaac
Nov 22 at 12:43




1




1




If what you created (directories and files) were not in a system directory; you could always find -delete them (where you use a -mtime possibly to limit the results to the last 24 (48, 72) hours. Use the find firstly to verify the results, then add the -delete to actually delete what it found. This is a rough idea (the find could also match some system files, logs etc that were modified in that time period, why I mentioned the non-system-directory at the start; though this too could possibly be worked around).
– guiverc
Nov 22 at 12:48




If what you created (directories and files) were not in a system directory; you could always find -delete them (where you use a -mtime possibly to limit the results to the last 24 (48, 72) hours. Use the find firstly to verify the results, then add the -delete to actually delete what it found. This is a rough idea (the find could also match some system files, logs etc that were modified in that time period, why I mentioned the non-system-directory at the start; though this too could possibly be worked around).
– guiverc
Nov 22 at 12:48












Thank you for the suggestion. I am going to give that a try. I take it that you can select from the list which ones you can delete.
– Isaac
Nov 22 at 12:51




Thank you for the suggestion. I am going to give that a try. I take it that you can select from the list which ones you can delete.
– Isaac
Nov 22 at 12:51










1 Answer
1






active

oldest

votes

















up vote
0
down vote



accepted










I'm afraid it is not possible, if there isn't setup any preliminary backup solution.



For example if you are using LVM you can create snapshots of your file-system before taking steps that you would like to cancel later on. In case it is not possible to setup LVM you can use some other backup solution. Here are presented few examples: Simple Backup Solution. Also here are presented the solutions that I'm using on my Ubuntu systems: https://github.com/pa4080/simple-backup-solutions






share|improve this answer























  • Thanks for that. Unfortunately i don't have any back ups atm. As i have just started on the server edition. Ill follow these steps in the future.
    – Isaac
    Nov 22 at 8:57











Your Answer








StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "89"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1095033%2fubuntu-server-back-to-a-couple-of-days-ago%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes








up vote
0
down vote



accepted










I'm afraid it is not possible, if there isn't setup any preliminary backup solution.



For example if you are using LVM you can create snapshots of your file-system before taking steps that you would like to cancel later on. In case it is not possible to setup LVM you can use some other backup solution. Here are presented few examples: Simple Backup Solution. Also here are presented the solutions that I'm using on my Ubuntu systems: https://github.com/pa4080/simple-backup-solutions






share|improve this answer























  • Thanks for that. Unfortunately i don't have any back ups atm. As i have just started on the server edition. Ill follow these steps in the future.
    – Isaac
    Nov 22 at 8:57















up vote
0
down vote



accepted










I'm afraid it is not possible, if there isn't setup any preliminary backup solution.



For example if you are using LVM you can create snapshots of your file-system before taking steps that you would like to cancel later on. In case it is not possible to setup LVM you can use some other backup solution. Here are presented few examples: Simple Backup Solution. Also here are presented the solutions that I'm using on my Ubuntu systems: https://github.com/pa4080/simple-backup-solutions






share|improve this answer























  • Thanks for that. Unfortunately i don't have any back ups atm. As i have just started on the server edition. Ill follow these steps in the future.
    – Isaac
    Nov 22 at 8:57













up vote
0
down vote



accepted







up vote
0
down vote



accepted






I'm afraid it is not possible, if there isn't setup any preliminary backup solution.



For example if you are using LVM you can create snapshots of your file-system before taking steps that you would like to cancel later on. In case it is not possible to setup LVM you can use some other backup solution. Here are presented few examples: Simple Backup Solution. Also here are presented the solutions that I'm using on my Ubuntu systems: https://github.com/pa4080/simple-backup-solutions






share|improve this answer














I'm afraid it is not possible, if there isn't setup any preliminary backup solution.



For example if you are using LVM you can create snapshots of your file-system before taking steps that you would like to cancel later on. In case it is not possible to setup LVM you can use some other backup solution. Here are presented few examples: Simple Backup Solution. Also here are presented the solutions that I'm using on my Ubuntu systems: https://github.com/pa4080/simple-backup-solutions







share|improve this answer














share|improve this answer



share|improve this answer








edited Nov 22 at 9:00

























answered Nov 22 at 8:51









pa4080

13.1k52460




13.1k52460












  • Thanks for that. Unfortunately i don't have any back ups atm. As i have just started on the server edition. Ill follow these steps in the future.
    – Isaac
    Nov 22 at 8:57


















  • Thanks for that. Unfortunately i don't have any back ups atm. As i have just started on the server edition. Ill follow these steps in the future.
    – Isaac
    Nov 22 at 8:57
















Thanks for that. Unfortunately i don't have any back ups atm. As i have just started on the server edition. Ill follow these steps in the future.
– Isaac
Nov 22 at 8:57




Thanks for that. Unfortunately i don't have any back ups atm. As i have just started on the server edition. Ill follow these steps in the future.
– Isaac
Nov 22 at 8:57


















draft saved

draft discarded




















































Thanks for contributing an answer to Ask Ubuntu!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.





Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


Please pay close attention to the following guidance:


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1095033%2fubuntu-server-back-to-a-couple-of-days-ago%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Biblatex bibliography style without URLs when DOI exists (in Overleaf with Zotero bibliography)

ComboBox Display Member on multiple fields

Is it possible to collect Nectar points via Trainline?