Use ftp instead of sftp
This commit is contained in:
		
							parent
							
								
									342a619d15
								
							
						
					
					
						commit
						0578879c54
					
				
					 1 changed files with 4 additions and 2 deletions
				
			
		|  | @ -101,7 +101,8 @@ if [ "${create_base:=0}" -eq 1 ]; then | ||||||
|     sudo zfs send --verbose -R "${dataset}@${snapshot_name}" \ |     sudo zfs send --verbose -R "${dataset}@${snapshot_name}" \ | ||||||
|         | gzip "-${compression_level}" --verbose --rsyncable \ |         | gzip "-${compression_level}" --verbose --rsyncable \ | ||||||
|         | split - --verbose -b "${max_size}" \ |         | split - --verbose -b "${max_size}" \ | ||||||
|             --filter "curl --netrc -kaT - sftp://${output_filename}" |             --filter "curl --netrc -kaT - ftp://${output_filename}" | ||||||
|  |             # Same as curl --netrc --insecure --append --upload-file | ||||||
|     printf "Written base backup to: '%s'.\n" "${output_filename}" |     printf "Written base backup to: '%s'.\n" "${output_filename}" | ||||||
|     printf "Done!\n" |     printf "Done!\n" | ||||||
|     exit 0 |     exit 0 | ||||||
|  | @ -134,7 +135,8 @@ output_filename="${destination}/${tag}${from_snapshot}-${to_snapshot}.gz" | ||||||
| sudo zfs send --verbose -R -i "@${from_snapshot}" "${dataset}@${to_snapshot}" \ | sudo zfs send --verbose -R -i "@${from_snapshot}" "${dataset}@${to_snapshot}" \ | ||||||
|     | gzip "-${compression_level}" --verbose \ |     | gzip "-${compression_level}" --verbose \ | ||||||
|     | split - --verbose -b "${max_size}" \ |     | split - --verbose -b "${max_size}" \ | ||||||
|         --filter "curl --netrc -kaT - sftp://${output_filename}" |         --filter "curl --netrc -kaT - ftp://${output_filename}" | ||||||
|  |         # Same as curl --netrc --insecure --append --upload-file | ||||||
| printf "Written incremental backup to: %s\n" "${output_filename}" | printf "Written incremental backup to: %s\n" "${output_filename}" | ||||||
| 
 | 
 | ||||||
| # TODO Cleanup | # TODO Cleanup | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue