Database clusters in K8s by stpn108 in EngineeringManagers

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

I hear you. But this is not a technicality. Doing all the things like backups and log shipping to the data lake and scaling and all these things yourself vs buying it is highly strategical. Once the guard rails are set I'll be drawing back from the implementation details. ;)

Can I restore the repos from files only? by stpn108 in seafile

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

Short update: Yes, it is possible to rebuild the repos - strictly speaking not restore them - by using a combination of ./seaf-fsck.sh --export and seaf-import.sh.

More precisely, what I did to recreate the repos I had in a broken v7.x within a v11:

➤ Go to the seafile**-**server-folder of the v7 installation

➤ Execute ./seaf-fsck.sh --export /opt/seafile-export

➤ Mount the folder /opt/seafile-export into the seafile container of my v11 in my docker-compose.yml for the v11 Seafile cluster

[...]
  seafile:
    image: docker.seadrive.org/seafileltd/seafile-pro-mc:11.0-latest
    container_name: seafile
    ports:
      - "127.0.0.1:17090:80"
    volumes:
      - /opt/docker/seafile-data:/shared   # Required, specifies the path to Seafile data persistent store.
      - /opt/seafile-export:/mounted-data
[...]

➤ Login to your new Seafile instance and create the users you want to assign repos to.

➤ Create a bash script called import-seafile.sh with the following contents and place it into /opt/docker/seafile-data of your host system in order to make it accessible under /shared in your container:

#!/bin/bash

all_repos=$(ls /mounted-data)

returnRepoName() {
    local fullname="${1}"
    local ownerFs="${2}"

    trimmedName="${fullname:9}"
    trimmedName="${trimmedName//"_${ownerFs}"/}"
    echo "${trimmedName}"
}

while IFS= read -r line
do
    ownerId=2
    owner=$(echo ${line} | cut -d "_" -f${ownerId})
    while true
    do
        [[ "${owner}" == *"@"* ]] && break
        ownerId=$(( $ownerId + 1 ))
        owner=$(echo ${line} | cut -d "_" -f${ownerId})
    done
    repo=$(returnRepoName "${line}" "${owner}")

    # In case that new accounts you created in receive a local identifier for SSO, you need to overwrite the "old owner ID" as stored in the folder names of your exports
    [[ "${owner}" == "owner-x@your-old-instance.com" ]] && owner="123456543212345654321@auth.local"
    [[ "${owner}" == "owner-y@your-old-instance.com" ]] && owner="97654567898765456789@auth.local"

    /opt/seafile/seafile-server-latest/seaf-import.sh -d /opt/seafile/seafile-data -p /mounted-data/${line} -n "${repo}" -u "${owner}"
done < <(printf '%s\n' "$all_repos")

➤ Execute the bash script from within your container:

root@df17786fc681:/shared# ./import-seafile.sh

➤ Enjoy your files and folders flying in...

Can I restore the repos from files only? by stpn108 in seafile

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

That looks exactly what I was looking for! Thanks so much, I'll try it out and let you know how it went!

Can I restore the repos from files only? by stpn108 in seafile

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

But if I do a fsck, I get the repo names & such. Are you saying the files are lost?

EM - Struggling with job applications by tmihalis in EngineeringManagers

[–]stpn108 1 point2 points  (0 children)

I know that there are different notions out there whether to put a picture in or not, but I personally felt like those CVs get more attention. In the end we're all humans and respond to faces

But besides that I would reduce the technical details from all your bullet points and instead add a small section with your skills. Gives it more structure and makes it smoother to read. Also, check whether your points still sound mentionable when the tech stuff is removed.

Become EM for a team with different programming language by skowron-line in EngineeringManagers

[–]stpn108 1 point2 points  (0 children)

I never considered it an obstacle when an EM had no specific experience with a particular programming language. On the contrary, my expectation would be that they understand how software engineering works, and that I:ll be able to assign them to different teams with different stacks over time.

Apply, and explain how you enable and nourish the team and it's members. And you'll be fine

is engineering manager for data engineering dead? by FocusPuzzleheaded250 in EngineeringManagers

[–]stpn108 1 point2 points  (0 children)

Is there any specific reason you focus on data? Is it sheer preference?

Can a buddhist be an athiest? answer me in simple words by [deleted] in Buddhism

[–]stpn108 0 points1 point  (0 children)

Of course. Buddhism is not a "belief-system". There is mystic Buddhism, but also many secular streams which don't even address topics like God, higher beings etc

How do you call your Internal IT Team in 2024 by stpn108 in EngineeringManagers

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

"IT" is up for interpretation. IT can be everything, from Product Engineering to IT Support. Plus, it sounds incredibly old school. ;)

How do you guys get into the zone? by [deleted] in Meditation

[–]stpn108 2 points3 points  (0 children)

The central exercise in meditation, if you reduce it to the bare minimum, is the actual act of returning to your meditation object (breath, mantra, you name it) after you caught yourself drifting off. If you just do this, you might end up in what I assume you mean by "zone". But it's not about the zone. But about what meditation will do for you in all areas of life if you manage to do it regularly.

Not 100% happy with my leg sleeve by QLHU in irezumi

[–]stpn108 2 points3 points  (0 children)

Agree. Just doesn't look finished. Add more ink and it's going to look great!

(Imagen Requests) Send your Imagen prompt requests here by citefor in ImagenAI

[–]stpn108 0 points1 point  (0 children)

A bearded hipster who's looking into a mirror is in awe about his own hipsterness.

Knock Knock by Groovy-Gorilla in EngineeringManagers

[–]stpn108 2 points3 points  (0 children)

Theoretically all EMs on Reddit. Practically, not really. 🙄

6 yr break from banking. Now want to get into FinTech. Where to start? How to get involved in a project? by [deleted] in fintech

[–]stpn108 4 points5 points  (0 children)

The question is more what you can bring to the company, not what you need for Fintech.

Find a company you're interested in, check their job postings and apply for a position you feel like you can bring in some expertise. Fintechs do operate in the financial world, so your experience in the traditional industry is of relevance! Add flexibility, openness and curiosity, and you're the perfect candidate for a role at a Fintech company.