# Powershell script for sysadmin to regularly download backups from server to computer

**URL:** <https://meta.discourse.org/t/powershell-script-for-sysadmin-to-regularly-download-backups-from-server-to-computer/280983>\
**Category:** Extras\
**Tags:** backups\
**Created:** [October 4, 2023, 1:10am UTC](https://meta.discourse.org/t/powershell-script-for-sysadmin-to-regularly-download-backups-from-server-to-computer/280983 "2023-10-04T01:10:40Z")\
**Posts on this page:** 1\
**Showing post:** 12

<div class="post-metadata">

**Author:** ![Bathinda](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/bathinda/32/135888_2.png) [@Bathinda](https://meta.discourse.org/u/Bathinda)\
**Post date:** [April 11, 2025, 5:58am UTC](https://meta.discourse.org/t/powershell-script-for-sysadmin-to-regularly-download-backups-from-server-to-computer/280983/12 "2025-04-11T05:58:23Z")

</div>

> [@Lhc\_fl](#):
>
> ```plaintext
> $ssh_port = 22
> $ssh_address = "edited_redacted@ip_addressofmyserver"
> 
> Write-Output "Starting Discourse backup download task..."
> Write-Output '--------------
> rest is same as you gave, nothing edited and saved as 'ps1' script.
> 
> ```

When I saved the PS script (just edited my username and ipaddress into its 2nd line), and right click\> Run With Powershell, then nothing happens.  
A flash happens. And if I’ve a terminal already open in my win11, then that terminal is brought to the front. Nothing else. Just a flash.

I was wondering, though I gave my username and ip address to the script, how would it use my ssh key to login and pull the backup?

Thanks.!

---

_[View the full topic](https://meta.discourse.org/t/powershell-script-for-sysadmin-to-regularly-download-backups-from-server-to-computer/280983)._
