Download file from server using SSH

About writing shell scripts and making the most of your shell
Forum rules
Topics in this forum are automatically closed 6 months after creation.
Locked
mr.suchy

Download file from server using SSH

Post by mr.suchy »

Hi,

I want add this script to cron. Bcs I need to download my backup file from server every day. How to write scritp which be download file using ssh ?

Kind regards
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Habitual

Re: Download file from server using SSH

Post by Habitual »

use scp or rsync
http://www.hypexr.org/linux_scp_help.php
http://rsync.net/resources/howto/rsync.html

script comes after you can manually do this via the command line.
Locked

Return to “Scripts & Bash”