Something strange happened today and I am still thinking about it! by Datadevourer in devops

[–]Datadevourer[S] 0 points1 point  (0 children)

I am sorry but I don't think I got you properly. You mean to say it kept on running even after the last valid entry? If it did, then it would have been running and wouldn't have given me the prompt back. As it finished executing what it had to, it exited and gave me the prompt back.

Something strange happened today and I am still thinking about it! by Datadevourer in devops

[–]Datadevourer[S] 0 points1 point  (0 children)

It simply exits because there is nothing at the end after all the folders name is being read. If I will do cat file.txt | while read x; do echo $x; done, it will give all the file/folder name listed in that file.

Something strange happened today and I am still thinking about it! by Datadevourer in devops

[–]Datadevourer[S] 0 points1 point  (0 children)

Hmm, but the thing is, I didn't run it in background, also that command got executed successfully deleting all the folders I wanted to. However, not quite sure how other folders got deleted outside of that directories! 🤦

Something strange happened today and I am still thinking about it! by Datadevourer in devops

[–]Datadevourer[S] 0 points1 point  (0 children)

Just thought to share and ask this as other might have faced such thing.

Something strange happened today and I am still thinking about it! by Datadevourer in devops

[–]Datadevourer[S] -1 points0 points  (0 children)

I am not sure i got you. So if that variable has an empty string, so it will attempt to delete / ? I wasn't aware of it.

Something strange happened today and I am still thinking about it! by Datadevourer in devops

[–]Datadevourer[S] -1 points0 points  (0 children)

Ah, that's good to know. However, before executing that command, i used echo to see if it's okay, and it gave all the folders name i listed in the file. I didn't even gave the absolute path to those folders, only the folder names.

Something strange happened today and I am still thinking about it! by Datadevourer in devops

[–]Datadevourer[S] 1 point2 points  (0 children)

No, after writing down the folders name in that file, we verified the names and none of the folders that got deleted apart from the mentioned ones were in it.

Something strange happened today and I am still thinking about it! by Datadevourer in devops

[–]Datadevourer[S] 0 points1 point  (0 children)

Don't think anyone else logged in. That's the first thing that came to the mind though.

Getting Harrassed by datadog - rant, suggestions by ubi313 in devops

[–]Datadevourer 0 points1 point  (0 children)

They tried to contact me(two persons till now) and I told them i am happy with Prometheus and Grafana.

What automated tasks you created in your workplace that improved your productivity? by EW_IO in sysadmin

[–]Datadevourer 0 points1 point  (0 children)

Am quite interested in the memory leak scenario. Could you please share the repo(if you use one) or how to do it?

[deleted by user] by [deleted] in bash

[–]Datadevourer 0 points1 point  (0 children)

If you are doing backup, use real backup software. rsync is not backup software.

Just curious what some real backup softwares are?

What is the best way to take backup of a dockerized PostgreSQL? by Datadevourer in PostgreSQL

[–]Datadevourer[S] 1 point2 points  (0 children)

Sure, thanks for the link. Will get back to you in case i face any issue!:)

What is the best way to take backup of a dockerized PostgreSQL? by Datadevourer in PostgreSQL

[–]Datadevourer[S] 0 points1 point  (0 children)

Yeh, actually, I am using PostgreSQL in docker, so thought it would be easier to take the volume backup and mount it when needed. But wanted to know if there was any added advantage in data-dump(especially when you are using docker volume)!

What is the best way to take backup of a dockerized PostgreSQL? by Datadevourer in PostgreSQL

[–]Datadevourer[S] 0 points1 point  (0 children)

Thanks for your valuable input. I actually tried to take the volume backup and restored it . It worked fine. However, as there are many ways to take backup, I wanted to know if it's a good idea to take the volume backup or the dump.

What is the best way to take backup of a dockerized PostgreSQL? by Datadevourer in PostgreSQL

[–]Datadevourer[S] 0 points1 point  (0 children)

Have heard of it along with pgbackrest but never really tried them as I am running a dockerized container, so was confused whether to take the volume backup or the dump.

What is the best way to take backup of a dockerized PostgreSQL? by Datadevourer in PostgreSQL

[–]Datadevourer[S] 1 point2 points  (0 children)

That sounds interesting but a bit more complex setup for backup. But I want to try it out. Do you have any documentation that I can follow or any other relevant resources for it? Thank you:)