[SOLVED] Restoring a single folder from an Evolution backup in Ubuntu 20.04
Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
alex@alex-nuc8i7hnk:/media/alex/New-SD-512/sat$ ls -l
total 0
As you can see, this in terminal mode, not in GUI
So, where are the backup files? What do I need to do to see them?
Thanks
OK, I ran the following :
Code:
alex@alex-nuc8i7hnk:~$ ls -l /media/New-SD-512
total 12
drwxr-xr-x 4 urbackup urbackup 4096 Aug 23 10:47 mybackup
drwxr-xr-x 3 root root 4096 Aug 23 10:19 sat
drwxr-xr-x 3 root root 4096 Aug 23 08:08 sun
alex@alex-nuc8i7hnk:~$ sudu chown -R alex:alex /media/New-SD-512
Then, I ran it again
Code:
alex@alex-nuc8i7hnk:~$ ls -l /media/New-SD-512
total 12
drwxr-xr-x 4 alex alex 4096 Aug 23 10:47 mybackup
drwxr-xr-x 3 alex alex 4096 Aug 23 10:19 sat
drwxr-xr-x 3 alex alex 4096 Aug 23 08:08 sun
The sat folder is empty - either in Terminal or in GUI
alex@alex-nuc8i7hnk:~$ ls -l /media/New-SD-512
total 12
drwxr-xr-x 4 urbackup urbackup 4096 Aug 23 10:47 mybackup
drwxr-xr-x 3 root root 4096 Aug 23 10:19 sat
drwxr-xr-x 3 root root 4096 Aug 23 08:08 sun
alex@alex-nuc8i7hnk:~$ sudu chown -R alex:alex /media/New-SD-512
Then, I ran it again
Code:
alex@alex-nuc8i7hnk:~$ ls -l /media/New-SD-512
total 12
drwxr-xr-x 4 alex alex 4096 Aug 23 10:47 mybackup
drwxr-xr-x 3 alex alex 4096 Aug 23 10:19 sat
drwxr-xr-x 3 alex alex 4096 Aug 23 08:08 sun
The sat folder is empty - either in Terminal or in GUI
(Thanks for using code tags!)
You aren’t checking the contents if sat or sun. You’re only checking the contents of New-SD-512.
Keep drilling down...or add a /* to that command.
(Thanks for using code tags!)
You aren’t checking the contents if sat or sun. You’re only checking the contents of New-SD-512.
Keep drilling down...or add a /* to that command.
OK, I followed and did this:
Code:
alex@alex-nuc8i7hnk:~$ ls -l /media/New-SD-512/sun/alexfolders
total 84
drwxr-xr-x 7 alex alex 12288 Sep 18 2020 A-Beleura-Village
drwxr-xr-x 4 alex alex 4096 Sep 18 2020 A-BeleuraWeb
drwxr-xr-x 3 alex alex 4096 Aug 22 11:18 A-BondsandStocks
drwxr-xr-x 8 alex alex 36864 Aug 20 08:48 A-DOCS
drwxr-xr-x 6 alex alex 4096 Aug 21 18:53 A-DT_Ubuntu
drwxr-xr-x 2 alex alex 4096 Oct 18 2020 A-Exit
drwxr-xr-x 22 alex alex 4096 Oct 7 2020 A-NMAA_New
drwxr-xr-x 7 alex alex 4096 Oct 18 2020 A-Photo_Albums
drwxr-xr-x 6 alex alex 4096 Oct 18 2020 A-Sakura_Sushi
drwxr-xr-x 7 alex alex 4096 Sep 18 2020 A-Sq-125
drwxr-xr-x 2 alex alex 4096 Sep 15 2020 'System Volume Information'
But, when I ran the chown - it says that I am already setup this way
Code:
alex@alex-nuc8i7hnk:~$ sudo chown -vR alex:alex /media/alex/New-SD-512/sun
[sudo] password for alex:
ownership of '/media/alex/New-SD-512/sun/alexfolders' retained as alex:alex
ownership of '/media/alex/New-SD-512/sun' retained as alex:alex
So, who is the owner that can see the content? Should I call Trump?
(Thanks for using code tags!)
You aren’t checking the contents if sat or sun. You’re only checking the contents of New-SD-512.
Keep drilling down...or add a /* to that command.
The code tags, I enter them manually - is there an easier way?
You are the owner of sun. I don't know about others. You should change the owner of the entire card. You probably aren't seeing the files because you aren't going deep enough into the folder hierarchy. The way you've set things up, there are some empty folders above the ones that actually have the files.
alex@alex-nuc8i7hnk:~$ ls -l /media/New-SD-512/sun/alexfolders
total 84
drwxr-xr-x 7 alex alex 12288 Sep 18 2020 A-Beleura-Village
drwxr-xr-x 4 alex alex 4096 Sep 18 2020 A-BeleuraWeb
drwxr-xr-x 3 alex alex 4096 Aug 22 11:18 A-BondsandStocks
drwxr-xr-x 8 alex alex 36864 Aug 20 08:48 A-DOCS
drwxr-xr-x 6 alex alex 4096 Aug 21 18:53 A-DT_Ubuntu
drwxr-xr-x 2 alex alex 4096 Oct 18 2020 A-Exit
drwxr-xr-x 22 alex alex 4096 Oct 7 2020 A-NMAA_New
drwxr-xr-x 7 alex alex 4096 Oct 18 2020 A-Photo_Albums
drwxr-xr-x 6 alex alex 4096 Oct 18 2020 A-Sakura_Sushi
drwxr-xr-x 7 alex alex 4096 Sep 18 2020 A-Sq-125
drwxr-xr-x 2 alex alex 4096 Sep 15 2020 'System Volume Information'
But, when I ran the chown - it says that I am already setup this way
Code:
alex@alex-nuc8i7hnk:~$ sudo chown -vR alex:alex /media/alex/New-SD-512/sun
[sudo] password for alex:
ownership of '/media/alex/New-SD-512/sun/alexfolders' retained as alex:alex
ownership of '/media/alex/New-SD-512/sun' retained as alex:alex
So, who is the owner that can see the content? Should I call Trump?
Sorry
Alex
The -R changed the owner on all the files and directories. You won’t need to do it again.
Doesn’t that list look exactly like a list of the source? You are seeing the content.
If you want to see what’s in A-Exit, for example, you need to do the ls -l on that directory.
Alternatively, you can cd into a directory, and just do ls -l to see what’s in it.
The number after the permissions is an indicator of the number of entries in the directory.
An empty directory will display 2 an entry for it and one for its parent.
Looks like A-Exit is empty, but A-NMAA_New has 20.
You are the owner of sun. I don't know about others. You should change the owner of the entire card. You probably aren't seeing the files because you aren't going deep enough into the folder hierarchy. The way you've set things up, there are some empty folders above the ones that actually have the files.
I ran the following command, a few hundred lines ran through the screen, all of them - said
ownership of '/media/alex/New-SD-512/DTPictures' retained as alex:alex for each of the folders
OK, that should do it. You should need no sudo for the cronjob. Now just wait for the next day's run. For the first week it should take awhile. Subsequent weeks should be faster, depending on how many files you add to alexfiles.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.