Back

[Sovled] Fail to run backup.sh in Windows

  • 2
  • Tools
  • General
Binyamin
24 Aug, 2023, 16:53

Run wsl.exe in the appwrite directory

TL;DR
Title: [Solved] Cannot run backup.sh in Windows; Solution: Use WSL to run the script - User was having trouble running backup.sh in Windows - Another user gave a solution: Run `wsl --set-default Ubuntu` in PowerShell - User was instructed to add Ubuntu to WSL integration in Docker Desktop - User asked for clarification on the previous instructions - User was given instructions to open PowerShell, navigate to the directory with backup.sh, and run `wsl.exe` - User asked how to run the script inside the backup.sh folder - User confirmed they have WSL installed - User was
Binyamin
24 Aug, 2023, 16:53

Check if you have docker, if so try to run the backup.sh if not let me know

Suiii
24 Aug, 2023, 16:53

yes i have wsl

Binyamin
24 Aug, 2023, 16:53

So do it inside that

Suiii
24 Aug, 2023, 16:55

how ?

Suiii
24 Aug, 2023, 16:56
Binyamin
24 Aug, 2023, 16:56
  1. Open powershell
  2. Navigate to that directory (Where the backup.sh is)
  3. Run wsl.exe
  4. Run
TypeScript
chmod +x backup.sh
./backup.sh
Binyamin
24 Aug, 2023, 17:06

Did it worked?

Suiii
24 Aug, 2023, 17:12

I can't run wsl.exe

Suiii
24 Aug, 2023, 17:12

inside the backup.sh folder

Suiii
24 Aug, 2023, 17:12

ofc, i can run wsl ubuntu

Binyamin
24 Aug, 2023, 17:13

What you get when running

TypeScript
wsl --list
Binyamin
24 Aug, 2023, 17:13

In powershell

Suiii
24 Aug, 2023, 17:14
Binyamin
24 Aug, 2023, 17:14

Good

Binyamin
24 Aug, 2023, 17:14

You'll need to two things

Suiii
24 Aug, 2023, 17:15

what are they ?

Binyamin
24 Aug, 2023, 17:16

First in <:docker:740465484373295127> Docker Desktop go and add Ubuntu to the WSL integration Then Apply & Restart

Binyamin
24 Aug, 2023, 17:17

Second, run this

TypeScript
PS> wsl --set-default Ubuntu

Then do this again

Suiii
24 Aug, 2023, 17:20

Work now

Suiii
24 Aug, 2023, 17:20

Thanks

Suiii
24 Aug, 2023, 17:20
Binyamin
24 Aug, 2023, 17:22

Great

Binyamin
24 Aug, 2023, 17:22

<a:agooglethumbsup:635256484682530825>

Suiii
24 Aug, 2023, 17:22

[Sovled] Fail to run backup.sh in Windows

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more