Comments (6)
Hi @emuell
I agree with @damoclark
A zip is not a good way of restoring Linux files
Thanks
from restic-browser.
Agree. Thanks for the feedback.
Already changed this here, making it the default restore option: #33
from restic-browser.
Sorry for the bump, but I think I'll need to reopen this issue and revert the change in #33
There's no way to do a restic restore
with relative paths. So restore operations always will (re)create the entire src path in the target directory. I think this is pretty confusing and may lead into even more confusion than what we had before.
An example:
Let's say we have a restic repository with the following contents:
C/Users/Me/Music/GreatStuff.mp3
C/Users/Me/Music/OtherStuff.mp3
If you now do a restore of only GreatStuff.mp3
in Restic-Browser and set your user's Downloads
as target directory, it will create a directory: C/Users/Me/Music/
in your Downloads.
When using dump instead of 'restore' it will directly restore the file to the target path. Now when dumping a folder such as C/Users/Me/Music
, a file Music.zip
will be created. This isn't ideal for Linux, but at least won't recreate the entire folder structure at the target dir.
from restic-browser.
Hi @emuell
Rather than revert this change, can you support both use cases?
Reverting this change means you cannot restore ownerships, permissions, hard or soft links, or xattr on Unix-based systems using Restic-browser. It also means that you have to deal with an intermediary file, which could be problematic if the volume of data being restored is substantial - you effectively require twice the space to restore it, after extracting the zip.
What if the restore interface allows the following choices (with perhaps some defaults in the settings):
- Full restore using standard Restic semantics (including full directory structure and all metadata - ie. owners permissions xattr etc)
- Restore to an archive: (select zip or tar or if only a single file is chosen, restore it directly to the target dir)
The whole point of a backup utility is to be able to get our data back. I sometimes think backup tools focus too much on the backup phase (because that is what we do the most often), and too little on the restore phase (which is the whole point of the backups). This is why I see Restic-browser as being so valuable to the Restic ecosystem.
Is this something you might consider?
Damo.
from restic-browser.
Reverting this change means you cannot restore ownerships, permissions, hard or soft links, or xattr on Unix-based systems using Restic-browser. It also means that you have to deal with an intermediary file, which could be problematic if the volume of data being restored is substantial - you effectively require twice the space to restore it, after extracting the zip.
Yes, good point about ownership, permission and co. I'll simply add both options to the GUI, so you can use whatever fits best.
Actually, restoring and dumping already can be done with shortcuts right now: Press r
key in file list for dumping, r
key for restoring, but this should be more obvious in the GUI.
from restic-browser.
This was now done in #38
A new version which includes this change will be released very soon.
from restic-browser.
Related Issues (20)
- Failed to open repository on Google Cloud HOT 8
- Feature request: copy info to clipboard HOT 2
- Blank window after starting on Manjaro Linux HOT 1
- Add bookmarks / favorites
- Specify file name / full destination during extraction
- wamp interference, port 80 HOT 4
- Using restore arrow does not work, but dumping file button works to restore
- Dump operation of 'NAME ARCHIVE failed: unknown shorthand flag: 'a'in -a HOT 2
- Make Rustic Version HOT 9
- [Guide] [HOWTO] [Windows] start Restic-browser with selected repository HOT 3
- Wrong tag for release 2.6 HOT 1
- Multiple selection of files
- Performance / Speed improvement HOT 1
- rclone path on macos HOT 2
- Mistake parsing `$RESTIC_REPOSITORY` if it starts with `s3:` HOT 9
- cancel restore
- Thank you HOT 2
- Some passwords with special characters do not work HOT 14
- Blank screen on Fedora / Nobara 39 HOT 1
- How to pass restic command line options (e.g. sftp.args) HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from restic-browser.