Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    yadayada
    @yadayada
    Unless I am mistaken, that is already how it is. If the deduplication argument is set, and a remote file of the same size as the local file exists, the hash of the local file is calculated.
    chrisidefix
    @chrisidefix
    I was wondering what is going on in content.py at the beginning of the upload_file function (line 101). It appears that line 102/103 are not required?
    params = {'suppress': 'deduplication’}
    if deduplication and os.path.getsize(file_name) > 0:
        params = {'suppress': 'deduplication'}
    yadayada
    @yadayada
    This message was deleted
    That's just plain wrong. The last line should read
        params = {}
    vancv
    @vancv
    Hi, I would like to know if is possible to download multiple files with one command?
    I tried something like "acdcli dl <remote_file_1> <remote_file_2> <local_folder>", but that does not work. Thanks
    chrisidefix
    @chrisidefix
    @vancv you can get a comprehensive explanation of how the commands should look like in the help message. Just type python3 acd_cli.py -h or to get additional info on a specific command (e.g. dl) type: python3 acd_cli.py dl -h, which will show you a more detailed explanation of the download command.
    chrisidefix
    @chrisidefix
    @vancv to answer your question: You can not list multiple files (or folders) as you tried to download them. You can, however, download folders and specify certain exclude criteria, for example. For any issues and requests, please also refer to the issue tracker on github: https://github.com/yadayada/acd_cli/issues
    yadayada
    @yadayada

    You can try

    for file in "/foo/bar" "/foo/baz"; do acdcli dl $file; echo $?; done

    The $? will give you the exit status. Sorry for the lack of consistency for uploads/downloads.

    vancv
    @vancv
    Thanks, I was actually trying to avoid that. But I think I can get around with downloading whole folder and exclude everything else using regexp.
    RamexDelta
    @RamexDelta
    This message was deleted
    RamexDelta
    @RamexDelta
    Hello,
    I'm trying to set up acd_cli to keep a large number of folders on my ACD synced with a corresponding set of folders on a local external hard drive. I would be making changes to the local folder structure (basically, as I add and organise (i.e delete) photos) and would like to have acd_cli mirror those changes on ACD. As far as I can see, it'll work fine for files/folders that are added to a given location, using the 'upload' or 'upload -r' actions. But if I delete a file from a given local folder, is there a way to have that change reflected on the corresponding folder on ACD?
    chrisidefix
    @chrisidefix
    @RamexDelta so far there is no automatic file deletion, but it wouldn't be very hard to implement. Changed files can already be overwritten. However, acd_cli alone can not be used the same way you use Dropbox. There is no active constant file monitoring in place. Instead, it's more of a backup, not so much of a sync tool (in its current form).
    @RamexDelta the "sync" command for example, is only synchronizing the list of (all) files on your ACD with a local database, but you already know that, I assume.
    chrisidefix
    @chrisidefix
    @yadayada a while ago I actually started implementing this (automatic file deletion), but didn't finish the coding. I would propose to make it a sub-option of the upload command - do you agree? acd_cli.py ul --remove or similar to explicitly allow locally missing files to be removed.
    @RamexDelta In general you would need to be fairly careful with this feature, especially when using an external hard drive! If the folder can not be found (since it's not mounted), we would likely assume everything has been deleted and remove everything from ACD. This, of course, is also an issue, if you have accidentally deleted files - these changes will be propagated to ACD.
    chrisidefix
    @chrisidefix
    @RamexDelta @yadayada What about file deletions on ACD? Should they in return also be propagated to your own drive - I guess in this perspective, it should become a new option - something like acd_cli.py mirror /local/path /remote
    RamexDelta
    @RamexDelta

    @chrisidefix Thanks for all your responses. Yep, I realise that acd_cli isn't intended a drop box replacment, and what the 'sync' command does (as I understand it, the sync command is gives you a local listing of all files (and some other information about each file) for the user to do with as they like. It provides a basis for some of the other commands to work from, but in of itself, doesn't do anything to to files on ACD. I think I've all that correct?)
    I'd like to use acd_cli to primarily upload photos to ACD. My workflow involves organising my photos by event, and sometimes, I put one in the wrong place, or sub divide an event, which inevitably involves moving photos between folders (and so, that's a Write to one folder and a Delete on another folder.)
    You're definitely right about the need to be very careful when allowing delete functionality. I'd suggest one of both of the following safeguards:

    • acd_cli would never actually delete anything - it'd just move "deleted" files to a Trash folder or somewhere else on ACD
    • to protect against the possibility you mentioned of the local file system being missing altogether, resulting in the potential for a large amount of deletions on ACD, a folder or file could be nominated on the local file system as being a 'deletion safeguard' file - if that file is missing on the local system, then no deletions will take place on the remote file structure

    With regard to file deletions on ACD: I hadn't though of that, and I can see how handling those would make the programming of it a lot more complicated. So, I'd suggest that you allow the user to declare what's to be considered the "master" file system - the local one or ACD; deletions that take place on the system which is not the master are not tracked or propagated to the other system. Or, to keep it even simpler, just don't track deletions on ACD - it is afterall, as you say, a backup rather than a syncing application.

    Just my two cents ...

    yadayada
    @yadayada
    Since the upload command is replicating the local directory structure, ul --remove foo/ /bar should remove (i.e. trash) remote files and dl --remove /bar foo/ should remove local files.
    There is already a feature request for this, yadayada/acd_cli#86.
    RamexDelta
    @RamexDelta
    @yadayada Great to hear it's already in the works! Thanks very much!
    yadayada
    @yadayada
    Unfortunately it is not yet in the works at the moment.
    RamexDelta
    @RamexDelta
    Oh right, thanks for clarifying. Hopefully you'll be able to do it at some point.
    Rudde
    @Rudde
    Hello
    I have problems mounting my adc, and I have FUSE > 2.6
    Rudde
    @Rudde
    Well that got sorted out
    just don't have a empty ACD
    And I was checking git and it says it has the allow_other option added, how do I use it?
    yadayada
    @yadayada
    You can get a listing of all mount arguments by executing acdcli mount -h.
    Rudde
    @Rudde
    It seems like it was a problem because my ACD was empty when I tried mounting it
    Niels Hofmans
    @hazcod
    Ahoy.
    Rudde
    @Rudde
    What does acd_cli clear-cache actually do? My mount get all fucked up and I have to restart the system :S
    yadayada
    @yadayada
    You should try acdcli umount -l to unmount everything first. acdcli cc clears the node cache.
    Rudde
    @Rudde
    Thanks! I will try that if the problem occurs again, but It does not seems to be occurring anymore after update from git.
    jonas5
    @jonas5
    Hi, What is average download speed on a decent setup?
    Rudde
    @Rudde
    What kind of https proxy can I configure on debian to mask my IP and use with acd_cli?
    Dmitry Kireev
    @kireevco
    Hi all. I'm going to try acd_cli, what would be the expected way for me to mount amazon disk on boot?
    rc.local ?
    yadayada
    @yadayada
    @kireevco Someone suggested using a crontab entry yadayada/acd_cli#90
    Dmitry Kireev
    @kireevco
    @yadayada thanks, I’ll use that
    @yadayada rethoric question: do you trust Amazon Drive with your personal photos? :-) Do you thinkit is safe?
    chrisidefix
    @chrisidefix
    There is something that is starting to annoy me about ACD. When you want to share links, you can not get actual file links. Instead you have to go to the website and download it there "manually". However, I would like to use wget to download some shared files. Any idea how it might be possible to do that (or any other way over the commandline)? Is this something that you think could possibly be integrated into acd_cli ? (I know it's not really the scope of this project, but it would be pretty nice to be able to do it.)
    yadayada
    @yadayada
    I think you'll need to dig deep into their code or use a JavaScript-capable webscraper to select your shared file and click it. The link that's generated then is actually a tempLink.
    A webscraper could be added to acd_cli for support of shared links and actual node deletion, but I'm not too keen on adding this myself.
    Rudde
    @Rudde
    What kind of server software do you guys use for the HTTPS_PROXY on acd_cli?
    TX T
    @txt8888
    is there a reason NOT to download the file if local file exists? I use amaze cloud for my git repository, this caused me problem .
    chrisidefix
    @chrisidefix
    @yadayada thanks - I guess I won't get around actually selecting the file and clicking that link. I was hoping I could have just added ?dl=1 or something similar to the link. Dropbox for example then allows you to download the file with wget, but why make things easy for the user, right?
    chrisidefix
    @chrisidefix
    @txt8888 yes, - you generally don't want to overwrite local files (unless you can be sure that the remote copy is the most recent and up-to-date version of the file). acd_cli does NOT keep track of file changes (as other cloud sync services do) for you. Therefore, you have to decide yourself if you want to force overwriting all local changes. It would be pretty poor design to automatically overwrite local files by default in my opinion. What if you locally changed your file? Any application will generally ask you if you really want to overwrite that file (or it will at least rename the downloaded file). I would not recommend syncing your git repository with a cloud service - maybe for backup purposes, but better use a service such as github or bitbucket (if you want private repositories).
    Marcus Stewart Hughes
    @msh100
    @Rudde tinyproxy is fine
    Rudde
    @Rudde
    Seems like squid work @msh100 but I don't think traffic between client and server is additionally encrypted, do tinyproxy do this?
    Also is it acd_cli that have trouble now or AMazon? I get this error "This application is temporarily over its serving quota. Please try again later."
    Marcus Stewart Hughes
    @msh100
    this seems to line up