Skip to content
This repository has been archived by the owner on Jan 29, 2019. It is now read-only.

Link original image instead of copy #72

Closed
ecksun opened this issue Apr 1, 2017 · 2 comments
Closed

Link original image instead of copy #72

ecksun opened this issue Apr 1, 2017 · 2 comments

Comments

@ecksun
Copy link

ecksun commented Apr 1, 2017

I'm hoping to use fgallery for all of my pictures (currently about 100GB), I would also naturally want to include the original image (-i), however when fgallery is copying all my original images it takes an unnecessary amount of extra space.

What is done currently is:

sys('cp', '-L', $file, $fout);

A very simple solution would be to add an option to use hard links instead (cp --link) or symlinks (ln -s).

@wavexx
Copy link
Owner

wavexx commented Apr 1, 2017

Agreed that a flag like --link-orig would come in handy.
Maybe even taking an argument like --link-orig=ref|hard|sym for cp --reflink, ln and ln -s respectively.

@ecksun
Copy link
Author

ecksun commented Apr 2, 2017

Yes, that sounds like a good solution.

hamishcoleman added a commit to hamishcoleman/fgallery that referenced this issue May 11, 2017
kensanata pushed a commit to kensanata/fgallery that referenced this issue Oct 25, 2017
kensanata pushed a commit to kensanata/fgallery that referenced this issue Oct 25, 2017
@wavexx wavexx closed this as completed Jan 29, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants