Skip to main content
Share Your Experience: Take the 2024 Developer Survey
48 votes
Accepted

How do you back up Jenkins jobs & master configs?

There are many ways to do this but the easiest way I can think of is doing a backup of the Jenkins home folder. You can see where your Jenkins home folder is located with: su jenkins echo $...
Gepser Hoil's user avatar
  • 1,312
40 votes

How do you back up Jenkins jobs & master configs?

All jobs (jobs/) and master config files (config.xml) can be found in Jenkins home folder (JENKINS_HOME ) in the following structure: JENKINS_HOME +- config.xml (jenkins root configuration) +- *....
kenorb's user avatar
  • 7,881
17 votes
Accepted

How to keep configuration files automatically during apt-get upgrade or install?

There are options you can pass through apt-get to dpkg that will handle the config choices. We usually do something like: apt-get install -y --no_install_recommends -o Dpkg::Options::='--force-...
Jiri Klouda's user avatar
  • 5,807
14 votes

Difference between chroot and Docker

Well, the extra bells and whistles is called process isolation, a container gets its own namespace from the host kernel, that means the program in the container can't try to read kernel memory or eat ...
Tensibai's user avatar
  • 11.4k
11 votes

How do you back up Jenkins jobs & master configs?

If your Jenkins jobs are defined in a Jenkinsfile you can store it in a git repository and have it loaded up by using Pipeline. Unfortunately, since not all Jenkins plugins support Jenkinsfile and ...
avi's user avatar
  • 1,279
11 votes

Does Docker allow containers to be OS agnostic?

Does the Docker engine abstract away the OS such that this configuration will run both apps? No, it does not. Docker uses containerisation as a core technology, which relies on the concept of sharing ...
user2640621's user avatar
  • 1,395
10 votes
Accepted

Docker compose volume syntax valid for Windows and Linux

Yes. Just use ./ for you current directory that the Docker-compose file is in. Your "working directory" for the compose file is just "./". If you are trying to set a directory ...
Wesley Rolnick's user avatar
10 votes
Accepted

Running a command as a specific user on an ec2 using ssm

I didn't find anything on AWS or boto3 docs that allows for that, but I was able to execute as a different user using the runuser command. In theory, you could do the same thing with a combination of ...
M. Gleria's user avatar
  • 216
9 votes

How do you back up Jenkins jobs & master configs?

The SCM Sync Configuration Plugin does exactly what you wish. Works with either svn or git to backup your jenkins core and job configuration, so gives you easy tracking as to who made changes, as well ...
Adam Berry's user avatar
8 votes

Difference between chroot and Docker

Yes, there absolutely is more to it than chroot to the point that they have little to nothing in common. A standardized script file format including semantics relating to the task a hand Images (...
AnoE's user avatar
  • 4,876
7 votes
Accepted

What's missing from this simple recipe that creates a user?

I'll put in an answer although I'm not 100% sure. I think that you got the permissions wrong on ~/.ssh and it should be 0700 instead of 0600, otherwise the user cannot access it. Another tip which is ...
eyalzek's user avatar
  • 471
6 votes

How do you back up Jenkins jobs & master configs?

I'm using scripts from sue445/jenkins-backup-script. It archives Jenkins settings and plugins such as: $JENKINS_HOME/*.xml $JENKINS_HOME/jobs/*/*.xml $JENKINS_HOME/nodes/* $JENKINS_HOME/plugins/*....
nickcheng's user avatar
  • 161
6 votes

How do you back up Jenkins jobs & master configs?

There are few ways to backup jenkins data and master configurations. The best way for backup is to use the Thinbackup plugin. You can schedule timely backups using cron expressions. You can configure ...
Bibin Wilson's user avatar
6 votes
Accepted

Advantages of Linux Containers over Docker

Docker is a specific implementation of Linux containers, or if you want to be more precise Docker is a distribution of tools that includes runc which is an implementation of Linux containers. Other ...
coderanger's user avatar
  • 1,197
6 votes

Ansible: register variable with loop

Q: "Check if all items are own by root." A: Put the list of the tools into the variable audit_tools. Compare the length of the lists. For example - hosts: localhost vars: audit_tools: ...
Vladimir Botka's user avatar
5 votes
Accepted

Build FreeBSD Docker image using Ubuntu host OS

As you can't build a docker image for an arm kernel from a x86 one neither. Nor can't you build an image with a glibc lib targetting a 4.x kernel on a host running a 3.X kernel. Docker isolate ...
Tensibai's user avatar
  • 11.4k
5 votes

How to automate Powershell's interactive Get-Credential method?

Your python problem is the \n after the commands, write already append a newline, so your script does the following: $cred = Get-Credential # Start the command # This line is ignored as extraneous ...
Tensibai's user avatar
  • 11.4k
5 votes
Accepted

How to get memory usage per process with sar, sysstat?

As Tensibai mentioned, you can extract this info from the /proc filesystem, but in most cases you need to determine the trending yourself. There are several places which could be of interest: /proc/[...
Dan Cornilescu's user avatar
5 votes

Debug BackendConnectionErrors from Kubernetes Service LoadBalancer sesrvice

My solution to this problem was to rework my Services. The setup in my question had one K8s Service with ~10 ports. I reworked the setup to use one port per Service. The problem went away. I don't ...
ahawkins's user avatar
  • 321
5 votes
Accepted

How to pass a /dev/disk device on macOS into Linux Docker?

Docker was built for linux, it runs on Mac through HyperkIT, which is a lightweight hypervisor. This means Docker only sees devices connected to the hyperkit hypervisor, rather than the devices ...
rusty009's user avatar
  • 166
5 votes
Accepted

Is there a system which automates everything (OS release, and above) to host websites on?

TL;DR Pick software that focuses on long-term support. Use containers so that you can separate the runtime you need for your app from the security patching of the underlying infrastructure. Long ...
simbo1905's user avatar
  • 1,172
5 votes

docker swarm init made docker go corrupted

This response is for Kernel: Linux 4.4.132-1075-rockchip-ayufan-ga83beded8524 Architecture: aarch64 aarch64 aarch64 GNU/Linux I had the same issue when issuing commands to a cluster in swarm mode. ...
user1870390's user avatar
4 votes

How to get memory usage per process with sar, sysstat?

Is it a hard requirement to use only sar and sysstat? If not you might want to look at collectl or collectd. These will enable you to study memory usage over time on a per-process granularity. It's ...
Gaius's user avatar
  • 1,076
4 votes

How do you back up Jenkins jobs & master configs?

You can try the thinBackup plugin (even though it is not actively maintained) [if taking a logical backup is all you want] (i.e. most of the config xml files, jobs, nodes etc). The backup size won't ...
Saikat's user avatar
  • 141
4 votes
Accepted

How to detect what interface has private IP in Ansible

Peter's module not working in CentOS and I write my own module: #!/usr/bin/python # encoding: utf-8 import subprocess from ansible.module_utils.basic import * from netaddr import IPNetwork def ...
Alexander Tolkachev's user avatar
4 votes
Accepted

How to create Golang Linux binaries using a Windows host

You can easily set the target operating system and processor architecture using the environment variables GOOS and GOARCH respectively. So, as you want to build it for linux operating system, ...
mohan08p's user avatar
  • 360
4 votes
Accepted

reboot server during Ansible tasks

Use this source code for reboot your client machine --- - name: System Reboot hosts: debian become_method: sudo become_user: root become: true tasks: - name: reboot nodes ...
Shaha Nawaj Mulla's user avatar
4 votes

Consul: how to remove dead client nodes quickly

As a best practice, you should gracefully deregister the node gracefully. In this case, consul will know the the node has left and will be removed from the cluster. Otherwise, the consul cannot ...
Samit's user avatar
  • 1,011
4 votes

What is the difference between a jail environment in linux and docker container?

While both Docker and jails have some similar functionality, they are built for different purposes. The term "jail" comes from the FreeBSD distro. A lot of people will also refer to a chroot as a ...
Wesley Rolnick's user avatar
3 votes
Accepted

Best method of retrieving environment information via Salt Stack?

SaltStack provides a method for modifying grains and adding additional information to the grains dictionary in several different ways by either setting them in the /etc/salt/minion config and/or ...
user54's user avatar
  • 583

Only top scored, non community-wiki answers of a minimum length are eligible