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.
server 18.04 backup
add a comment |
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.
server 18.04 backup
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 alwaysfind -delete
them (where you use a -mtime possibly to limit the results to the last 24 (48, 72) hours. Use thefind
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
add a comment |
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.
server 18.04 backup
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
server 18.04 backup
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 alwaysfind -delete
them (where you use a -mtime possibly to limit the results to the last 24 (48, 72) hours. Use thefind
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
add a comment |
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 alwaysfind -delete
them (where you use a -mtime possibly to limit the results to the last 24 (48, 72) hours. Use thefind
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
add a comment |
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
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
add a comment |
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
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
add a comment |
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
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
add a comment |
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
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
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
add a comment |
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
add a comment |
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.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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
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 thefind
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