I want to move a large number of large files over ssh.
Because I want to free space, I want to delete the files after they have been moved. Because the amount of data is large, I want to be able to interrupt the transfer any time and continue it with the same command later. (In fact my internet connection resets at least once per day and interrupts the transfer)
Unfortunately, I cannot use rsync, at least not like this:
rsync -avz --remove-source-files user@source:/path/ /destination_path/
rsync only deletes the source files after ALL have been copied - if the transfer is interrupted, no space is freed at all. Putting the command in cron will cause it to never finish without manually deleting files that have already been copied.
Is there a solution for this problem?