Page 6 of 6

Posted: Sat 16 Mar 2019, 16:02
by fredx181
Semme wrote:Xenial 7.5/32b, Fred. Haven't used it recently but it worked fine a few months back.
Thanks Semme, I tried on Xenial 7.5 by installing the pet from mikeb and it works ok without replacing dropbox_uploader.sh with the one I updated.
So it looks to me that on any newer Puppy version than Xenial, dropbox-gui doesn't work, but can be fixed with the above attached dropbox_uploader.sh
(btw, on Xenial 7.5, tried replacing dropbox_uploader.sh with the newer and still works ok, so... strange that you got that error you mentioned above)

@mikeb, this should support filenames with spaces:

Code: Select all

 add_selection () { 
	[ ! -f "$HOME/.dropbox_uploader-$PROFILE" ]&& return
	[ $BUTTON = 3 -a ! -h "$DIR/$CHOOSER" ]|| return #symlinks upset uploader...folders now handled...

		[ ! "$CHOOSER" ]&& return #otherwise loads folder!
#		rxvt -rv --geometry 80x10 -e dropbox_uploader.sh -k -p -f ~/.dropbox_uploader-"$PROFILE" upload $(while read -r line; do echo $DIR/$line; done <<< "$CHOOSER") "$REMOTE_DIR"

# fredx181, handle spaces in filenames
	in_term2 () {
		while read -r I; do
		dropbox_uploader.sh -k -p -f ~/.dropbox_uploader-"$PROFILE" upload "$DIR/$I" "$REMOTE_DIR/$I"
		done <<< "$CHOOSER"
		sleep 2
		}
	export -f in_term2
	rxvt -rv -geometry 80x10 -e bash -c in_term2
			build_remote_list
}
Fred

Posted: Sat 16 Mar 2019, 17:33
by Semme
All good Fred. Your updated script works a treat.

I did however have to clean out a few stale profile related items in ~/ before she synced.

I'm certain this was the hold-up.

==

8) Great (dev) method, Mike. Thank you for providing this pkg.

Posted: Sat 16 Mar 2019, 19:23
by mikeb
Ah great fred. I will diff the new script and as you believe its probably curl.
And also thanks for the multiple file fix....I always get caught out with spaces in names :oops:

I will add these fixes and upload a new version when I get the chance.

Nice detective work,

mike

Posted: Sat 16 Mar 2019, 20:16
by fredx181
mikeb wrote:Ah great fred. I will diff the new script and like you its probably curl.
And also thanks for the multiple file fix....I always get caught out with spaces in names :oops:

I will add these fixes and upload a new version when I get the change.

Nice detective work,

mike
Glad to help Mike !
As a coincidence my Google-drive Filemanager program stopped working also, was able to fix it (but wasn't so easy :wink: )
http://murga-linux.com/puppy/viewtopic. ... 85#1022085

Best regards, Fred

Posted: Mon 18 Mar 2019, 14:53
by mikeb
Yes both fixes work just fine. Looks like a newer system affects the response file as that is the only change.
Shame to have to use such a clunky way to build the command line but as you must have found a simpler way is not possible.

Cheers

mike

Posted: Fri 12 Apr 2019, 18:20
by fredx181
Hi mikeb, any reason for not updating dropbox-gui with my latest proposed improvements ?

Fred

Posted: Sat 13 Apr 2019, 00:32
by mikeb
Hi fred

I did I think a while ago but forgot to announce at the end of this thread :oops: ... assuming we are talking about the needed script update for curl and the fix for name spaces.

If its something else let me know.... my befuddled brain is a bit distracted at the moment.

mike

Posted: Sat 13 Apr 2019, 05:46
by fredx181
mikeb wrote:Hi fred

I did I think a while ago but forgot to announce at the end of this thread :oops: ... assuming we are talking about the needed script update for curl and the fix for name spaces.

If its something else let me know.... my befuddled brain is a bit distracted at the moment.

mike
Ah, sorry Mike, I assumed that you'd announce it and I forgot to look at first post. :oops:

Fred

Posted: Mon 15 Apr 2019, 07:27
by mikeb
Worry not... at least I am not going mad in spite of pressure to do so :D

mike

Posted: Mon 29 Apr 2019, 01:30
by Jake Grey
Hi. Slightly embarrassing problem here. I managed to get your program installed, but when I get to the part where I'm supposed to input the access token, I can't copy and paste it: Ctrl+V and Ctrl+Shift+V just make a ^ symbol appear.

The obvious workaround would seem to be running "dropbox_uploader.sh" in LXTerminal, but I have no idea where to find it in /root.

Posted: Mon 29 Apr 2019, 09:55
by mikeb
Ah yes... paste with middle mouse button OR shift insert might work for you.

mike

Posted: Tue 30 Apr 2019, 11:03
by mikeb
Seems my notifications have stopped again and my newly created email address is banned.. very odd.
So I may take a while to respond.

Mike

Posted: Tue 30 Apr 2019, 14:19
by Jake Grey
Shift + Insert did the trick. Much obliged.

awesome!

Posted: Mon 13 May 2019, 15:42
by sfeeley
This is great!

I agree with the above poster that cut/paste instructions in the help section might be handy for those who don't normally touch a terminal

ALSO: This is just what I was looking for, and actually ADDS functionality to dropbox. I was looking for an easy way to download my entire dropbox to an external harddrive.
DB actually recommends against this, since disconnecting a harddrive can break synchronization and result in loss of files. They suggest downloading everything to an Internal HD first, and then copying to an external HD.
But my internal HD isn't big enough--I felt stuck!

But this allows a simple download to an external HD without the middle steps. And no auto synchronization (I suspect) means that this can't corrupt the web-stored files.

As such, I see this as handy to use in addition to, not as substitute for regular DB, which I plan to continue using for regular synchronization of more select files

Package this as a standalone and market to the masses?
(maybe this already exists but I didn't see it)

unexpected selective sync

Posted: Tue 14 May 2019, 11:40
by sfeeley
Noticed one quirk, related to selective sync

On most of my computers I use the "selective sync" dropbox option, which allows me to choose which folders I want to have downloaded to my computer. This allows to have large files/directories only on DB cloud storage that are not filling up local drive on computer's small HD.

last night I used Computer A to upload files to DB using the filemanager.

On Computers B and C these files were automatically added to the list of directories for selective sync, and downloaded.
-When I look at the selective sync control, under settings, they appear with "check boxes" next to them that I did not add.

Any way to prevent this?

Posted: Wed 15 May 2019, 18:07
by mikeb
Any way to prevent this?
Hmm I am assuming the default behaviour is to include newly added files to be synced.

I understand what you would like to happen and there may be a switch with the upload api but I do not know off the top of my head... one I will look into.

No notifications again :(

And yes a handy tool... its just a couple of bash scripts in essence. I also made a similar functioning web interface with again simplicity in mind.

As for cut and paste help that's a good idea.

Watch this (vacant) space

mike