Wednesday, May 15, 2024
9
rated 0 times [  9] [ 0]  / answers: 1 / hits: 40295  / 3 Years ago, wed, november 17, 2021, 3:37:47

Is there an easy way to backup Firefox bookmarks to a file with command line. Running a find command, I managed to find this file: /.mozilla/firefox/9a5j5dbb.default/bookmarkbackups/bookmarks-2013-05-22.json which appears to have my latest data. However, I dont know if the folder under Firefox (currently 9a5j5dbb.default) will keep changing, and I'm pretty sure the date will.



Rather than a more advanced shell script to dynamically calculate the path based on today's date and looking for the only xxxxx.default folder under ~/.mozilla.



Is there a simpler/more-robust way to save/copy your current Firefox bookmarks to a specified file?


More From » command-line

 Answers
0

Well since there is only one .default in that folder you could use a wildcard like this:



*.default



sudo cp -fr /Path/to/Source/Folder/*.default /Path/to/Destination/Folder


[#31085] Wednesday, November 17, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
epypian

Total Points: 130
Total Questions: 111
Total Answers: 113

Location: Romania
Member since Mon, Jun 6, 2022
2 Years ago
;