Back

[SOLVED] Appwrite instance take a lot of space

  • 0
  • Self Hosted
iStornZ
11 Sep, 2023, 16:04
TL;DR
Summary: The user is experiencing a space issue with their Appwrite instance. They discuss different backup methods and scripts. Another user suggests checking the size of the overlay2 directory. The user confirms that the backup scripts work well and asks if they do a complete backup. They also ask if a specific script is up-to-date. The user is advised to run a command to find the fault and big files. It is determined that the Appwrite space is okay and the issue is related to Docker's use of overlay2. Solution: The solution proposed is to check the size of the overlay2 directory using the command "du -sh /
Binyamin
11 Sep, 2023, 16:06

That's okay You see, in the attached photo you can see that the available space is the same as the main drive Docker uses overlay2 to connect the volumes to the containers

iStornZ
11 Sep, 2023, 16:07

Okay ! So the 10gb is Appwrite + the OS data right ? Appwrite space is ok for you πŸ™‚ ?

iStornZ
11 Sep, 2023, 16:07

Thanks for your really quick help @Binyamin

Binyamin
11 Sep, 2023, 16:07

If you do want to find the fault and the big files, run

TypeScript
 du -sh /*

Then, you can go folder by folder to find to over use. But if you have the

  • Images
  • Volumes At 5GB then it seems normal
iStornZ
11 Sep, 2023, 16:10

Thanks a lot !

iStornZ
11 Sep, 2023, 16:10

Last question, is this script is up-to-date ? https://gist.github.com/Meldiron/47b5851663668102a676aff43c6341f7

Binyamin
11 Sep, 2023, 16:12

I think it should work yes, Also check Steven's one as it also dump the DB

iStornZ
11 Sep, 2023, 16:13

Yeah I already has the steven one, working perfectly ! My question is all the scripts (steven or Meldiron) works exactly the same ? All does a complete backup ?

Binyamin
11 Sep, 2023, 16:14

Yes,

Binyamin
11 Sep, 2023, 16:14

I would suggest practicing by trying to restore a backup to a new server I'm using the above script, then, I'm pushing it to remote host using rclone

iStornZ
11 Sep, 2023, 16:15

Nice tips ! Thanks @Binyamin

iStornZ
11 Sep, 2023, 16:15

BTW it seems overlay2 take 21G :p

iStornZ
11 Sep, 2023, 16:16

Is it normal ?

Binyamin
11 Sep, 2023, 16:16

Isn't your server 20GB in total?

iStornZ
11 Sep, 2023, 16:16

Yep !

iStornZ
11 Sep, 2023, 16:17
Binyamin
11 Sep, 2023, 16:17

So it's probably symlinks Try

TypeScript
du -sh /var/lib/docker/overlay2/*

To find out

iStornZ
11 Sep, 2023, 16:18

Thats very huge !

Binyamin
11 Sep, 2023, 16:23

it doesn't seems like it's a problem as it is As layers shares with each other

iStornZ
11 Sep, 2023, 16:26

Ok perfect thanks @Binyamin !

Binyamin
11 Sep, 2023, 16:27

<:appwriteupvote:899677724615016528>

Guille
11 Sep, 2023, 16:31

[SOLVED] Appwrite instance take a lot of space

hamed
11 Sep, 2023, 16:58

Same here, mine reached 70 GB πŸ˜… It's a good thing you asked <:appwriteheart2:1073243188954935387>

Drake
11 Sep, 2023, 21:03

the backup methods are different for the database. Matej's script saves the volume data. My script doest a sql dump.

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